Monitoring platform job integration in computer analytics system

ABSTRACT

A computer implemented method includes establishing, by a data intake and query system, a network connection between the data intake and query system and an application and infrastructure monitoring platform. The data intake and query system receives a data stream from the application and infrastructure monitoring platform. The computer implemented method further includes transforming the data stream while receiving the data stream to obtain a transformed data stream. Further, the transformed data stream is analyzed while receiving the data stream to generate analysis results, which are presented.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of, and thereby claims benefit under35 U.S.C. § 120 to, U.S. patent application Ser. No. 17/038,265, filedon Sep. 30, 2020. U.S. patent application Ser. No. 17/038,265 isincorporated herein by reference in its entirety.

BACKGROUND

Computer systems pervade almost every aspect of business and technology.In addition to performing various functions, computer systems alsoperform data collection and reporting. For example, a softwareapplication may be instrumented to collect data as to which portions ofcode are executed. Similarly, when software applications performactions, the software application may store data about the action in alog file. Because of the pervasiveness of computer systems and theamount of processing performed, large volumes of data are recorded.

Big data analytics is the process of examining such large volumes inorder to extract information. For example, the analytics may be used todetermine the functioning of a large server farm, detect anomalies andthreats, detect intrusions, and generate metrics about electroniccommerce sites. Heterogeneous systems collect and analyze differenttypes of recorded data. Because of the separation between the systemsand the heterogeneity between command formats, data formats, andalgorithms, integration of different systems is a challenge.

BRIEF DESCRIPTION OF DRAWINGS

The present disclosure is illustrated by way of example, and notlimitation, in the figures of the accompanying drawings, in which likereference numerals indicate similar elements and in which:

FIG. 1 is a block diagram of an example networked computer environment,in accordance with example embodiments;

FIG. 2 is a block diagram of an example data intake and query system, inaccordance with example embodiments;

FIG. 3 is a block diagram of an example cloud-based data intake andquery system, in accordance with example embodiments;

FIG. 4 is a block diagram of an example data intake and query systemthat performs searches across external data systems, in accordance withexample embodiments;

FIG. 5A is a flowchart of an example method that illustrates howindexers process, index, and store data received from forwarders, inaccordance with example embodiments;

FIG. 5B is a block diagram of a data structure in which time-stampedevent data can be stored in a data store, in accordance with exampleembodiments;

FIG. 5C provides a visual representation of the manner in which apipelined search language or query operates, in accordance with exampleembodiments;

FIG. 6A is a flow diagram of an example method that illustrates how asearch head and indexers perform a search query, in accordance withexample embodiments;

FIG. 6B provides a visual representation of an example manner in which apipelined command language or query operates, in accordance with exampleembodiments;

FIG. 7A is a diagram of an example scenario where a common customeridentifier is found among log data received from three disparate datasources, in accordance with example embodiments;

FIG. 7B illustrates an example of processing keyword searches and fieldsearches, in accordance with disclosed embodiments;

FIG. 7C illustrates an example of creating and using an inverted index,in accordance with example embodiments;

FIG. 7D depicts a flowchart of example use of an inverted index in apipelined search query, in accordance with example embodiments;

FIG. 8A is an interface diagram of an example user interface for asearch screen, in accordance with example embodiments;

FIG. 8B is an interface diagram of an example user interface for a datasummary dialog that enables a user to select various data sources, inaccordance with example embodiments;

FIGS. 9 and 10 are interface diagrams of example report generation userinterfaces, in accordance with example embodiments;

FIG. 11 is an example search query received from a client and executedby search peers, in accordance with example embodiments;

FIG. 12A is an interface diagram of an example user interface of a keyindicators view, in accordance with example embodiments;

FIG. 12B is an interface diagram of an example user interface of anincident review dashboard, in accordance with example embodiments;

FIG. 12C is a tree diagram of an example a proactive monitoring tree, inaccordance with example embodiments;

FIG. 12D is an interface diagram of an example a user interfacedisplaying both log data and performance data, in accordance withexample embodiments;

FIG. 13 is a block diagram of an example data intake and query systeminterfacing with an application and infrastructure monitoring platform,in accordance with example embodiments;

FIG. 14 is a block diagram of an example search head of the data intakeand query system interfacing with an application and infrastructuremonitoring platform, in accordance with example embodiments;

FIG. 15 depicts a flowchart of command integration in a computeranalytics system in accordance with one or more embodiments;

FIG. 16 depicts a flowchart of job request execution in a computeranalytics system in accordance with one or more embodiments;

FIG. 17 illustrates an example of a command change in accordance withone or more embodiments;

FIG. 18A illustrates an example of a monitoring platform command inaccordance with one or more embodiments;

FIG. 18B illustrates an example of metadata returned by the monitoringplatform in accordance with one or more embodiments;

FIG. 18C illustrates an example of data returned by the monitoringplatform in accordance with one or more embodiments; and

FIG. 18D illustrates an example of a transformation in accordance withone or more embodiments.

DETAILED DESCRIPTION

Specific embodiments of the invention will now be described in detailwith reference to the accompanying figures. Like elements in the variousfigures are denoted by like reference numerals for consistency.

In the following detailed description of embodiments of the invention,numerous specific details are set forth in order to provide a morethorough understanding of the invention. However, it will be apparent toone of ordinary skill in the art that the invention may be practicedwithout these specific details. In other instances, well-known featureshave not been described in detail to avoid unnecessarily complicatingthe description.

Throughout the application, ordinal numbers (e.g., first, second, third,etc.) may be used as an adjective for an element (i.e., any noun in theapplication). The use of ordinal numbers is not to imply or create anyparticular ordering of the elements nor to limit any element to beingonly a single element unless expressly disclosed, such as by the use ofthe terms “before”, “after”, “single”, and other such terminology.Rather, the use of ordinal numbers is to distinguish between theelements. By way of an example, a first element is distinct from asecond element, and the first element may encompass more than oneelement and succeed (or precede) the second element in an ordering ofelements.

Further, although the description includes a discussion of variousembodiments, the various disclosed embodiments may be combined invirtually any manner. All combinations are contemplated herein.

One or more embodiments are directed to integration in a computeranalytics system. The computer analytics system includes a data intakeand query system and an application and infrastructure monitoringplatform (“monitoring platform”). A monitoring platform is a separateand distinct platform for monitoring various aspects of a network. Theintegration is performed by transforming a data intake and query systemcommand into a monitoring platform command. The command is a request fora data stream from the monitoring platform, whereby the data in the datastream satisfies criteria in the command. As the data stream isreceived, the data stream is transformed and analyzed without beingstored. Thus, the amount of data storage and indexing is avoided.

1.0. General Overview

Modern data centers and other computing environments can compriseanywhere from a few host computer systems to thousands of systemsconfigured to process data, service requests from remote clients, andperform numerous other computational tasks. During operation, variouscomponents within these computing environments often generatesignificant volumes of machine data. Machine data is any data producedby a machine or component in an information technology (IT) environmentand that reflects activity in the IT environment. For example, machinedata can be raw machine data that is generated by various components inIT environments, such as servers, sensors, routers, mobile devices,Internet of Things (IoT) devices, etc. Machine data can include systemlogs, network packet data, sensor data, application program data, errorlogs, stack traces, system performance data, etc. In general, machinedata can also include performance data, diagnostic information, and manyother types of data that can be analyzed to diagnose performanceproblems, monitor user interactions, and to derive other insights.

A number of tools are available to analyze machine data. In order toreduce the size of the potentially vast amount of machine data that maybe generated, many of these tools typically pre-process the data basedon anticipated data-analysis needs. For example, pre-specified dataitems may be extracted from the machine data and stored in a database tofacilitate efficient retrieval and analysis of those data items atsearch time. However, the rest of the machine data typically is notsaved and is discarded during pre-processing. As storage capacitybecomes progressively cheaper and more plentiful, there are fewerincentives to discard these portions of machine data and many reasons toretain more of the data.

This plentiful storage capacity is presently making it feasible to storemassive quantities of minimally processed machine data for laterretrieval and analysis. In general, storing minimally processed machinedata and performing analysis operations at search time can providegreater flexibility because it enables an analyst to search all of themachine data, instead of searching only a pre-specified set of dataitems. This may enable an analyst to investigate different aspects ofthe machine data that previously were unavailable for analysis.

However, analyzing and searching massive quantities of machine datapresents a number of challenges. For example, a data center, servers, ornetwork appliances may generate many different types and formats ofmachine data (e.g., system logs, network packet data (e.g., wire data,etc.), sensor data, application program data, error logs, stack traces,system performance data, operating system data, virtualization data,etc.) from thousands of different components, which can collectively bevery time-consuming to analyze. In another example, mobile devices maygenerate large amounts of information relating to data accesses,application performance, operating system performance, networkperformance, etc. There can be millions of mobile devices that reportthese types of information.

These challenges can be addressed by using an event-based data intakeand query system, such as the SPLUNK® ENTERPRISE system developed bySplunk Inc. of San Francisco, Calif. The SPLUNK® ENTERPRISE system isthe leading platform for providing real-time operational intelligencethat enables organizations to collect, index, and search machine datafrom various websites, applications, servers, networks, and mobiledevices that power their businesses. The data intake and query system isparticularly useful for analyzing data which is commonly found in systemlog files, network data, and other data input sources. Although many ofthe techniques described herein are explained with reference to a dataintake and query system similar to the SPLUNK® ENTERPRISE system, thesetechniques are also applicable to other types of data systems.

In the data intake and query system, machine data is collected andstored as “events”. An event comprises a portion of machine data and isassociated with a specific point in time. The portion of machine datamay reflect activity in an information technology (IT) environment andmay be produced by a component of that IT environment, where the eventsmay be searched to provide insight into the IT environment, therebyimproving the performance of components in the IT environment. Eventsmay be derived from “time series data,” where the time series datacomprises a sequence of data points (e.g., performance measurements froma computer system, etc.) that are associated with successive points intime. In general, each event has a portion of machine data that isassociated with a timestamp that is derived from the portion of machinedata in the event. A timestamp of an event may be determined throughinterpolation between temporally proximate events having knowntimestamps or may be determined based on other configurable rules forassociating timestamps with events.

In some instances, machine data can have a predefined format, where dataitems with specific data formats are stored at predefined locations inthe data. For example, the machine data may include data associated withfields in a database table. In other instances, machine data may nothave a predefined format (e.g., may not be at fixed, predefinedlocations), but may have repeatable (e.g., non-random) patterns. Thismeans that some machine data can comprise various data items ofdifferent data types that may be stored at different locations withinthe data. For example, when the data source is an operating system log,an event can include one or more lines from the operating system logcontaining machine data that includes different types of performance anddiagnostic information associated with a specific point in time (e.g., atimestamp).

Examples of components which may generate machine data from which eventscan be derived include, but are not limited to, web servers, applicationservers, databases, firewalls, routers, operating systems, and softwareapplications that execute on computer systems, mobile devices, sensors,IoT devices, etc. The machine data generated by such data sources caninclude, for example and without limitation, server log files, activitylog files, configuration files, messages, network packet data,performance measurements, sensor measurements, etc.

The data intake and query system uses a flexible schema to specify howto extract information from events. A flexible schema may be developedand redefined as needed. Note that a flexible schema may be applied toevents “on the fly,” when it is needed (e.g., at search time, indextime, ingestion time, etc.). When the flexible schema is not applied toevents until search time, the flexible schema may be referred to as a“late-binding schema.”

During operation, the data intake and query system receives machine datafrom any type and number of sources (e.g., one or more system logs,streams of network packet data, sensor data, application program data,error logs, stack traces, system performance data, etc.). The dataintake and query system parses the machine data to produce events eachhaving a portion of machine data associated with a timestamp. The dataintake and query system stores the events in a data store. The dataintake and query system enables users to run queries against the storedevents to, for example, retrieve events that meet criteria specified ina query, such as criteria indicating certain keywords or having specificvalues in defined fields. As used herein, the term “field” refers to alocation in the machine data of an event containing one or more valuesfor a specific data item. A field may be referenced by a field nameassociated with the field. As will be described in more detail herein, afield is defined by an extraction rule (e.g., a regular expression) thatderives one or more values or a sub-portion of text from the portion ofmachine data in each event to produce a value for the field for thatevent. The set of values produced are semantically-related (such as IPaddress), even though the machine data in each event may be in differentformats (e.g., semantically-related values may be in different positionsin the events derived from different sources).

As described above, the data intake and query system stores the eventsin a data store. The events stored in the data store arefield-searchable, where field-searchable herein refers to the ability tosearch the machine data (e.g., the raw machine data) of an event basedon a field specified in search criteria. For example, a search havingcriteria that specifies a field name “UserID” may cause the data intakeand query system to field-search the machine data of events to identifyevents that have the field name “UserID.” In another example, a searchhaving criteria that specifies a field name “UserID” with acorresponding field value “12345” may cause the data intake and querysystem to field-search the machine data of events to identify eventshaving that field-value pair (e.g., field name “UserID” with acorresponding field value of “12345”). Events are field-searchable usingone or more configuration files associated with the events. Eachconfiguration file includes one or more field names, where each fieldname is associated with a corresponding extraction rule and a set ofevents to which that extraction rule applies. The set of events to whichan extraction rule applies may be identified by metadata associated withthe set of events. For example, an extraction rule may apply to a set ofevents that are each associated with a particular host, a source, or asource type. When events are to be searched based on a particular fieldname specified in a search, the data intake and query system uses one ormore configuration files to determine whether there is an extractionrule for that particular field name that applies to each event thatfalls within the criteria of the search. If so, the event is consideredas part of the search results (and additional processing may beperformed on that event based on criteria specified in the search). Ifnot, the next event is similarly analyzed, and so on.

As noted above, the data intake and query system utilizes a late-bindingschema while performing queries on events. One aspect of a late-bindingschema is applying extraction rules to events to extract values forspecific fields during search time. More specifically, the extractionrule for a field can include one or more instructions that specify howto extract a value for the field from an event. An extraction rule cangenerally include any type of instruction for extracting values fromevents. In some cases, an extraction rule comprises a regularexpression, where a sequence of characters forms a search pattern. Anextraction rule comprising a regular expression is referred to herein asa regex rule. The data intake and query system applies a regex rule toan event to extract values for a field associated with the regex rule,where the values are extracted by searching the event for the sequenceof characters defined in the regex rule.

In the data intake and query system, a field extractor may be configuredto automatically generate extraction rules for certain fields in theevents when the events are being created, indexed, or stored, orpossibly at a later time. Alternatively, a user may manually defineextraction rules for fields using a variety of techniques. In contrastto a conventional schema for a database system, a late-binding schema isnot defined at data ingestion time. Instead, the late-binding schema canbe developed on an ongoing basis until the time a query is actuallyexecuted. This means that extraction rules for the fields specified in aquery may be provided in the query itself or may be located duringexecution of the query. Hence, as a user learns more about the data inthe events, the user can continue to refine the late-binding schema byadding new fields, deleting fields, or modifying the field extractionrules for use the next time the late-binding schema is used by the dataintake and query system. Because the data intake and query systemmaintains the underlying machine data and uses a late-binding schema forsearching the machine data, it enables a user to continue investigatingand learn valuable insights about the machine data.

In some embodiments, a common field name may be used to reference two ormore fields containing equivalent and/or similar data items, even thoughthe fields may be associated with different types of events thatpossibly have different data formats and different extraction rules. Byenabling a common field name to be used to identify equivalent and/orsimilar fields from different types of events generated by disparatedata sources, the data intake and query system facilitates use of a“common information model” (CIM) across the disparate data sources(further discussed with respect to FIG. 7A).

2.0. Operating Environment

FIG. 1 is a block diagram of an example networked computer environment(100), in accordance with example embodiments. Those skilled in the artwould understand that FIG. 1 represents one example of a networkedcomputer system and other embodiments may use different arrangements.

The example networked computer system 100 comprises one or morecomputing devices. These one or more computing devices comprise anycombination of hardware and software configured to implement the variouslogical components described herein. For example, the one or morecomputing devices may include one or more memories that storeinstructions for implementing the various components described herein,one or more hardware processors configured to execute the instructionsstored in the one or more memories, and various data repositories in theone or more memories for storing data structures utilized andmanipulated by the various components.

In some embodiments, one or more client devices 102 are coupled to oneor more host devices 106 and a data intake and query system 108 via oneor more networks 104. Networks 104 broadly represent one or more LocalArea Networks (LANs), Wide Area Networks (WANs), cellular networks(e.g., Long-Term Evolution (LTE), High Speed Packet Access (HSPA), 3G,and other cellular technologies), and/or networks using any of wired,wireless, terrestrial microwave, or satellite links, and may include thepublic Internet.

2.1. Host Devices

In the illustrated embodiment, a networked computer system 100 includesone or more host devices 106. Host devices 106 may broadly include anynumber of computers, virtual machine instances, and/or data centers thatare configured to host or execute one or more instances of hostapplications 114. In general, a host device 106 may be involved,directly or indirectly, in processing requests received from clientdevices 102. Each host device 106 may comprise, for example, one or moreof a network device, a web server, an application server, a databaseserver, etc. A collection of host devices 106 may be configured toimplement a network-based service. For example, a provider of anetwork-based service may configure one or more host devices 106 andhost applications 114 (e.g., one or more web servers, applicationservers, database servers, etc.) to collectively implement thenetwork-based application.

In general, client devices 102 communicate with one or more hostapplications 114 to exchange information. The communication between aclient device 102 and a host application 114 may, for example, be basedon the Hypertext Transfer Protocol (HTTP) or any other network protocol.Content delivered from the host application 114 to a client device 102may include, for example, Hyper Text Markup Language (HTML) documents,media content, etc. The communication between a client device 102 and ahost application 114 may include sending various requests and receivingdata packets. For example, in general, a client device 102 or anapplication running on a client device may initiate communication with ahost application 114 by making a request for a specific resource (e.g.,based on an HTTP request), and the application server may respond withthe requested content stored in one or more response packets.

In the illustrated embodiment, one or more instances of hostapplications 114 may generate various types of performance data duringoperation, including event logs, network data, sensor data, and othertypes of machine data. For example, a host application 114 comprising aweb server may generate one or more web server logs in which details ofinteractions between the web server and any number of client devices 102is recorded. As another example, a host device 106 comprising a routermay generate one or more router logs that record information related tonetwork traffic managed by the router. As yet another example, a hostapplication 114 comprising a database server may generate one or morelogs that record information related to requests sent from other hostapplications 114 (e.g., web servers or application servers) for datamanaged by the database server.

2.2. Client Devices

Client devices 102 of FIG. 1 represent any computing device capable ofinteracting with one or more host devices 106 via a network 104.Examples of client devices 102 may include, without limitation, smartphones, tablet computers, handheld computers, wearable devices, laptopcomputers, desktop computers, servers, portable media players, gamingdevices, and so forth. In general, a client device 102 can provideaccess to different content, for instance, content provided by one ormore host devices 106, etc. Each client device 102 may comprise one ormore client applications 110, described in more detail in a separatesection hereinafter.

2.3. Client Device Applications

In some embodiments, each client device 102 may host or execute one ormore client applications 110 that are capable of interacting with one ormore host devices 106 via one or more networks 104. For instance, aclient application 110 may be or comprise a web browser that a user mayuse to navigate to one or more websites or other resources provided byone or more host devices 106. As another example, a client application110 may comprise a mobile application or “app.” For example, an operatorof a network-based service hosted by one or more host devices 106 maymake available one or more mobile apps that enable users of clientdevices 102 to access various resources of the network-based service. Asyet another example, client applications 110 may include backgroundprocesses that perform various operations without direct interactionfrom a user. A client application 110 may include a “plug-in” or an“extension” to another application, such as a web browser plug-in orextension.

In some embodiments, a client application 110 may include a monitoringcomponent 112. At a high level, the monitoring component 112 comprises asoftware component or other logic that facilitates generatingperformance data related to a client device's operating state, includingmonitoring network traffic sent and received from the client device 102and collecting other device and/or application-specific information.Monitoring component 112 may be an integrated component of a clientapplication 110, a plug-in, an extension, or any other type of add-oncomponent. Monitoring component 112 may also be a stand-alone process.

In some embodiments, a monitoring component 112 may be created when aclient application 110 is developed, for example, by an applicationdeveloper using a software development kit (SDK). The SDK may includecustom monitoring code that can be incorporated into the codeimplementing a client application 110. When the code is converted to anexecutable application, the custom code implementing the monitoringfunctionality can become part of the application itself.

In some embodiments, an SDK or other code for implementing themonitoring functionality may be offered by a provider of a data intakeand query system, such as a data intake and query system 108. In suchcases, the provider of the system 108 can implement the custom code sothat performance data generated by the monitoring functionality is sentto the system 108 to facilitate analysis of the performance data by adeveloper of the client application or other users.

In some embodiments, the custom monitoring code may be incorporated intothe code of a client application 110 in a number of different ways, suchas the insertion of one or more lines in the client application codethat calls or otherwise invokes the monitoring component 112. As such, adeveloper of a client application 110 can add one or more lines of codeinto the client application 110 to trigger the monitoring component 112at desired points during execution of the application. Code thattriggers the monitoring component 112 may be referred to as a monitortrigger. For instance, a monitor trigger may be included at or near thebeginning of the executable code of the client application 110 such thatthe monitoring component 112 is initiated or triggered as theapplication is launched, or included at other points in the code thatcorrespond to various actions of the client application 110, such assending a network request or displaying a particular interface.

In some embodiments, the monitoring component 112 may monitor one ormore aspects of network traffic sent and/or received by a clientapplication 110. For example, the monitoring component 112 may beconfigured to monitor data packets transmitted to and/or from one ormore host applications 114. Incoming and/or outgoing data packets can beread or examined to identify network data contained within the packets,for example, and other aspects of data packets can be analyzed todetermine a number of network performance statistics. Monitoring networktraffic may enable information to be gathered particular to the networkperformance associated with a client application 110 or set ofapplications.

In some embodiments, network performance data refers to any type of datathat indicates information about the network 104 and/or networkperformance. Network performance data may include, for instance, auniform resource locator (URL) requested, a connection type (e.g., HTTP,Hypertext Transfer Protocol Secure (HTTPS), etc.), a connection starttime, a connection end time, an HTTP status code, a request length, aresponse length, request headers, response headers, a connection status(e.g., completion, response time(s), failure, etc.), and the like. Uponobtaining network performance data indicating performance of the network104, the network performance data can be transmitted to a data intakeand query system 108 for analysis.

Upon developing a client application 110 that incorporates a monitoringcomponent 112, the client application 110 can be distributed to clientdevices 102. Applications generally can be distributed to client devices102 in any manner, or they can be pre-loaded. In some cases, theapplication may be distributed to a client device 102 via an applicationmarketplace or other application distribution system. For instance, anapplication marketplace or other application distribution system mightdistribute the application to a client device 102 based on a requestfrom the client device 102 to download the application.

Examples of functionality that enables monitoring performance of aclient device 102 are described in U.S. patent application Ser. No.14/524,748, entitled “UTILIZING PACKET HEADERS TO MONITOR NETWORKTRAFFIC IN ASSOCIATION WITH A CLIENT DEVICE”, filed on 27 Oct. 2014, andwhich is hereby incorporated by reference in its entirety for allpurposes.

In some embodiments, the monitoring component 112 may also monitor andcollect performance data related to one or more aspects of theoperational state of a client application 110 and/or client device 102.For example, a monitoring component 112 may be configured to collectdevice performance information by monitoring one or more client deviceoperations, or by making calls to an operating system and/or one or moreother applications executing on a client device 102 for performanceinformation. Device performance information may include, for instance, acurrent wireless signal strength of the device, a current connectiontype and a network carrier, current memory performance information, ageographic location of the device, a device orientation, and any otherinformation related to the operational state of the client device 102.

In some embodiments, the monitoring component 112 may also monitor andcollect other device profile information including, for example, a typeof client device 102, a manufacturer and model of the device, versionsof various software applications installed on the device, and so forth.

In general, a monitoring component 112 may be configured to generateperformance data in response to a monitor trigger in the code of aclient application 110 or other triggering application event, asdescribed above, and to store the performance data in one or more datarecords. Each data record, for example, may include a collection offield-value pairs, each field-value pair storing a particular item ofperformance data in association with a field for the item. For example,a data record generated by a monitoring component 112 may include a“networkLatency” field (not shown in the Figure) in which a value isstored. This field indicates a network latency measurement associatedwith one or more network requests. The data record may include a “state”field to store a value indicating a state of a network connection, andso forth for any number of aspects of collected performance data.

2.4. Data Server System

FIG. 2 is a block diagram of an example data intake and query system108, in accordance with example embodiments. Data intake and querysystem 108 includes one or more forwarders 204 that receive data from avariety of data sources 202, and one or more indexers 206 that processand store the data in one or more data stores 208. These forwarders 204and indexers 206 can comprise separate computer systems or mayalternatively comprise separate processes executing on one or morecomputer systems.

Each data source 202 broadly represents a distinct source of data thatcan be consumed by data intake and query system 108. Examples of a datasources 202 include, without limitation, data files, directories offiles, data sent over a network, event logs, registries, etc.

During operation, the forwarders 204 identify which indexers 206 receivedata collected from a data source 202 and forward the data to theappropriate indexers 206. Forwarders 204 can also perform operations onthe data before forwarding, including removing extraneous data,detecting timestamps in the data, the parsing data, the indexing data,the routing data based on criteria relating to the data being routed,and/or performing other data transformations.

In some embodiments, a forwarder 204 may comprise a service accessibleto client devices 102 and host devices 106 via a network 104. Forexample, one type of forwarder 204 may be capable of consuming vastamounts of real-time data from a potentially large number of clientdevices 102 and/or host devices 106. The forwarder 204 may, for example,comprise a computing device which implements multiple data pipelines or“queues” to handle forwarding of network data to indexers 206. Aforwarder 204 may also perform many of the functions that are performedby an indexer 206. For example, a forwarder 204 may perform keywordextractions on raw data or parse raw data to create events. A forwarder204 may generate timestamps for events. Additionally, or alternatively,a forwarder 204 may perform routing of events to indexers 206. Datastore 208 may contain events derived from machine data from a variety ofsources all pertaining to the same component in an IT environment, andthis data may be produced by the machine in question or by othercomponents in the IT environment.

2.5. Cloud-Based System Overview

The example data intake and query system 108 described in reference toFIG. 2 comprises several system components, including one or moreforwarders 204, indexers 206, and search heads 210. In someenvironments, a user of a data intake and query system 108 may installand configure, on computing devices owned and operated by the user, oneor more software applications that implement some or all of these systemcomponents. For example, a user may install a software application onserver computers owned by the user and configure each server to operateas one or more of a forwarder 204, an indexer 206, a search head 210,etc. This arrangement generally may be referred to as an “on-premises”solution. That is, the data intake and query system 108 is installed andoperates on computing devices directly controlled by the user of thedata intake and query system 108. Some users may prefer an on-premisessolution because it may provide a greater level of control over theconfiguration of certain aspects of the system (e.g., security, privacy,standards, controls, etc.). However, other users may instead prefer anarrangement in which the user is not directly responsible for providingand managing the computing devices upon which various components of dataintake and query system 108 operate.

In one embodiment, to provide an alternative to an entirely on-premisesenvironment for the data intake and query system 108, one or more of thecomponents of a data intake and query system 108 instead may be providedas a cloud-based service. In this context, a cloud-based service refersto a service hosted by one more computing resources that are accessibleto end users over a network, for example, by using a web browser orother application on a client device to interface with the remotecomputing resources. For example, a service provider may provide acloud-based data intake and query system by managing computing resourcesconfigured to implement various aspects of the data intake and querysystem 108 (e.g., forwarders 204, indexers 206, search heads 210, etc.)and by providing access to the data intake and query system 108 to endusers via a network. Typically, a user may pay a subscription or otherfee to use such a service. Each subscribing user of the cloud-basedservice may be provided with an account that enables the user toconfigure a customized cloud-based system based on the user'spreferences.

FIG. 3 illustrates a block diagram of an example cloud-based data intakeand query system 306. Similar to the system of FIG. 2 , the networkedcomputer system 300 includes data sources 202 and forwarders 204. Thesedata sources 202 and forwarders 204 may be in a subscriber's privatecomputing environment. Alternatively, they might be directly managed bythe service provider as part of the cloud service. In the examplenetworked computer system 300, one or more forwarders 204 and clients302 are coupled to a cloud-based data intake and query system 306 viaone or more networks 304. Network 304 broadly represents one or moreLANs, WANs, cellular networks, intranetworks, internetworks, etc., usingany of wired, wireless, terrestrial microwave, satellite links, etc.,and may include the public Internet, and is used by client devices 302and forwarders 204 to access the cloud-based data intake and querysystem 306. Similar to the system of FIG. 2 , each of the forwarders 204may be configured to receive data from an input source and to forwardthe data to other components of the cloud-based data intake and querysystem 306 for further processing.

In some embodiments, a cloud-based data intake and query system 306 maycomprise a plurality of system instances 308. In general, each systeminstance 308 may include one or more computing resources managed by aprovider of the cloud-based data intake and query system 306 madeavailable to a particular subscriber. The computing resources comprisinga system instance 308 may, for example, include one or more servers orother devices configured to implement one or more forwarders 204,indexers, search heads, and other components of a data intake and querysystem, similar to data intake and query system 108. As indicated above,a subscriber may use a web browser or other application of a clientdevice 302 to access a web portal or other interface that enables thesubscriber to configure a system instance 308.

Providing a data intake and query system as described in reference todata intake and query system 108 as a cloud-based service presents anumber of challenges. Each of the components of a system 108 (e.g.,forwarders, indexers, and search heads) may at times refer to variousconfiguration files stored locally at each component. Theseconfiguration files typically may involve some level of userconfiguration to accommodate particular types of data a user desires toanalyze and to account for other user preferences. However, in acloud-based service context, users typically may not have direct accessto the underlying computing resources implementing the various systemcomponents (e.g., the computing resources comprising each systeminstance 308) and may desire to make such configurations indirectly, forexample, using one or more web-based interfaces. Thus, the techniquesand systems described herein for providing user interfaces that enable auser to configure source type definitions are applicable to bothon-premises and cloud-based service contexts, or some combinationthereof (e.g., a hybrid system where both an on-premises environment,such as SPLUNK® ENTERPRISE, and a cloud-based environment, such asSPLUNK® CLOUD, are centrally visible).

2.5.1 Containerized, Stateless Cloud-Based System Overview

As shown in the previous figures, various embodiments may refer to adata intake and query system 108 that includes one or more of a searchhead 210, an indexer 206, and a forwarder 204. In other implementations,data intake and query system 108 may be implemented in a cloud-basedsystem, such as cloud-based data intake and query system 306, as shownin FIG. 3 . In some implementations, the cloud-based data intake andquery system 306 have a different architecture but may carry outindexing and searching in a way that is similar to and in some waysfunctionally equivalent from the perspective of the end user. Forexample, cloud-based data intake and query system 306 may bere-architected to run in a stateless, containerized environment. In someof these embodiments, cloud-based data intake and query system 306 maybe run in a computing cloud provided by a third party or provided by theoperator of the cloud-based data intake and query system 306. This typeof cloud-based data intake and query system 306 may have severalbenefits, including, but not limited to, lossless data ingestion, morerobust disaster recovery, and faster or more efficient processing,searching, and indexing. A cloud-based data intake and query system 306as described in this section may provide separately scalable storageresources and compute resources, or separately scalable search and indexresources. Additionally, the cloud-based data intake and query system306 may allow for applications to be developed on top of the data intakeand query system 108, to extend or enhance functionality, through agateway layer or one or more Application Programming Interfaces (APIs),which may provide customizable access control or targeted exposure tothe workings of the cloud-based data intake and query system 306.

In some embodiments, a cloud-based data intake and query system 306 mayinclude an intake system. Such an intake system can include, but is notlimited to, an intake buffer, such as Apache Kafka® or Amazon Kinesis®,or an extensible compute layer, such as Apache Spark™ or Apache Flink®.In some embodiments, the search function and the index function may beseparated or containerized, so that search functions and index functionsmay run or scale independently. In some embodiments, indexed data may bestored in buckets, which may be stored in a persistent storage oncecertain bucket requirements have been met and retrieved as needed forsearching. In some embodiments, the search functions and index functionsrun in stateless containers, which may be coordinated by anorchestration platform. These containerized search and index functionsmay retrieve data needed to carry out searching and indexing from thebuckets or various other services that may also run in containers, orwithin other components of the orchestration platform. In this manner,loss of a single container, or even multiple containers, does not resultin data loss, because the data can be quickly recovered from the variousservices or components or the buckets in which the data is persisted.

In some embodiments, the cloud-based data intake and query system 306may implement tenant-based and user-based access control. In someembodiments, the cloud-based data intake and query system 306 mayimplement an abstraction layer, through a gateway portal, an API, orsome combination thereof, to control or limit access to thefunctionality of the cloud-based data intake and query system 306. Insome embodiments, the cloud-based data intake and query system 306 maybe multi-tenant, so that containerized search and indexing may be doneacross multiple tenants.

2.6. Searching Externally-Archived Data

FIG. 4 shows a block diagram of an example of a data intake and querysystem 108 that provides transparent search facilities for data systemsthat are external to the data intake and query system 108. Suchfacilities are available in the Splunk® Analytics for Hadoop® systemprovided by Splunk Inc. of San Francisco, Calif. Splunk® Analytics forHadoop® represents an analytics platform that enables businesses and ITteams to rapidly explore, analyze, and visualize data in Hadoop® andNoSQL data stores.

The search head 210 of the data intake and query system 108 receivessearch requests from one or more client devices 404 over networkconnections 420. As discussed above, the data intake and query system108 may reside in an enterprise location, in the cloud, etc. FIG. 4illustrates that multiple client devices 404 a, 404 b . . . 404 n maycommunicate with the data intake and query system 108. The clientdevices 404 may communicate with the data intake and query system 108using a variety of connections. For example, one client device 404 a inFIG. 4 is illustrated as communicating over an Internet (Web) protocol,another client device 404 b is illustrated as communicating via acommand line interface, and another client device 404 n is illustratedas communicating via a software developer kit (SDK).

The search head 210 analyzes the received search request to identifyrequest parameters. If a search request received from one of the clientdevices 404 references an index maintained by the data intake and querysystem 108, then the search head 210 connects to one or more indexers206 of the data intake and query system 108 for the index referenced inthe request parameters. That is, if the request parameters of the searchrequest reference an index, then the search head 210 accesses the datain the index via the indexer 206. The data intake and query system 108may include one or more indexers 206, depending on system accessresources and requirements. As described further below, the indexers 206retrieve data from their respective local data stores 208 as specifiedin the search request. The indexers 206 and their respective data stores208 can comprise one or more storage devices and typically reside on thesame system, though they may be connected via a local network 420.

If the request parameters of the received search request reference anexternal data collection, which is not accessible to the indexers 206 orunder the management of the data intake and query system 108, then thesearch head 210 can access the external data collection through anExternal Result Provider (ERP) process 410, 412. An external datacollection may be referred to as a “virtual index” (plural, “virtualindices”). An ERP process 410, 412 provides an interface through whichthe search head 210 may access virtual indices.

Thus, a search reference to an index of the data intake and query system108 relates to a locally stored and managed data collection. Incontrast, a search reference to a virtual index relates to an externallystored and managed data collection, which the search head 210 may accessthrough one or more ERP processes 410, 412. FIG. 4 shows two ERPprocesses 410, 412 that connect to respective remote (external) virtualindices, which are indicated as a Hadoop or another system 414 (e.g.,Amazon S3, Amazon EMR, other Hadoop® Compatible File Systems (HCFS),etc.) and a relational database management system (RDBMS) 416. Othervirtual indices may include other file organizations and protocols, suchas Structured Query Language (SQL) and the like. The ellipses betweenthe ERP processes 410, 412 indicate optional additional ERP processes ofthe data intake and query system 108. An ERP process may be a computerprocess that is initiated or spawned by the search head 210 and isexecuted by the data intake and query system 108. Alternatively, oradditionally, an ERP process may be a process spawned by the search head210 on the same or different host system as the search head 210 resides.

The search head 210 may spawn a single ERP process in response tomultiple virtual indices referenced in a search request, or the searchhead 210 may spawn different ERP processes 410, 412 for differentvirtual indices. Generally, virtual indices that share common dataconfigurations or protocols may share ERP processes 410, 412. Forexample, all search query references to a Hadoop file system may beprocessed by the same ERP process, if the ERP process is suitablyconfigured. Likewise, all search query references to a SQL database maybe processed by the same ERP process. In addition, the search head 210may provide a common ERP process for common external data source types(e.g., a common vendor may utilize a common ERP process, even if thevendor includes different data storage system types, such as Hadoop andSQL). Common indexing schemes also may be handled by common ERPprocesses 410, 412, such as flat text files or Weblog files.

The search head 210 determines the number of ERP processes 410, 412 tobe initiated via the use of configuration parameters that are includedin a search request message. Generally, there is a one-to-manyrelationship between an external results provider “family” and ERPprocesses 410, 412. There is also a one-to-many relationship between anERP process and corresponding virtual indices that are referred to in asearch request. For example, using RDBMS 416, assume two independentinstances of such a system by one vendor, such as one RDBMS 416 forproduction and another RDBMS 416 used for development. In such asituation, it is likely preferable (but optional) to use two ERPprocesses 410, 412 to maintain the independent operation as betweenproduction and development data. Both of the ERP processes 410, 412,however, will belong to the same family, because the two RDBMS systemtypes are from the same vendor.

The ERP processes 410, 412 receive a search request from the search head210. The search head 210 may optimize the received search request forexecution at the respective external virtual index. Alternatively, theERP process may receive a search request as a result of analysisperformed by the search head 210 or by a different system process. TheERP processes 410, 412 can communicate with the search head 210 viaconventional input/output routines (e.g., standard in/standard out,etc.). In this way, the ERP process receives the search request from aclient device such that the search request may be efficiently executedat the corresponding external virtual index.

The ERP processes 410, 412 may be implemented as a process of the dataintake and query system 108. Each ERP process 410, 412 may be providedby the data intake and query system 108 or may be provided by process orapplication providers who are independent of the data intake and querysystem 108. Each respective ERP process 410, 412 may include aninterface application installed at a computer of the external resultprovider that ensures proper communication between the search supportsystem and the external result provider. The ERP processes 410, 412generate appropriate search requests in the protocol and syntax of therespective virtual indices 414, 416, each of which corresponds to thesearch request received by the search head 210. Upon receiving searchresults from their corresponding virtual indices, the respective ERPprocess passes the result to the search head 210, which may return ordisplay the results, or a processed set of results based on the returnedresults to the respective client device.

Client devices 404 may communicate with the data intake and query system108 through a network 420, e.g., one or more LANs, WANs, cellularnetworks, intranetworks, and/or internetworks using any of wired,wireless, terrestrial microwave, satellite links, etc., and may includethe public Internet.

The analytics platform utilizing the External Result Provider processdescribed in more detail in U.S. Pat. No. 8,738,629, entitled “EXTERNALRESULT PROVIDED PROCESS FOR RETRIEVING DATA STORED USING A DIFFERENTCONFIGURATION OR PROTOCOL”, issued on 27 May 2014, U.S. Pat. No.8,738,587, entitled “PROCESSING A SYSTEM SEARCH REQUEST BY RETRIEVINGRESULTS FROM BOTH A NATIVE INDEX AND A VIRTUAL INDEX”, issued on 25 Jul.2013, U.S. patent application Ser. No. 14/266,832, entitled “PROCESSINGA SYSTEM SEARCH REQUEST ACROSS DISPARATE DATA COLLECTION SYSTEMS”, filedon 1 May 2014, and U.S. Pat. No. 9,514,189, entitled “PROCESSING ASYSTEM SEARCH REQUEST INCLUDING EXTERNAL DATA SOURCES”, issued on 6 Dec.2016, each of which is hereby incorporated by reference in its entiretyfor all purposes.

2.6.1. ERP Process Features

The ERP processes 410, 412 described above may include two operationmodes: a streaming mode and a reporting mode. The ERP processes 410, 412can operate in streaming mode only, in reporting mode only, or in bothmodes simultaneously. Operating in both modes simultaneously is referredto as mixed mode operation. In a mixed mode operation, the ERP at somepoint can stop providing the search head 210 with streaming results andonly provide reporting results thereafter, or the search head 210 atsome point may start ignoring streaming results it has been using andonly use reporting results thereafter.

The streaming mode returns search results in real time, with minimalprocessing, in response to the search request. The reporting modeprovides results of a search request with processing of the searchresults prior to providing them to the requesting search head 210, whichin turn provides results to the requesting client device. ERP operationwith such multiple modes provides greater performance flexibility withregard to report time, search latency, and resource utilization.

In a mixed mode operation, both streaming mode and reporting mode areoperating simultaneously. The streaming mode results (e.g., the machinedata obtained from the external data source) are provided to the searchhead 210, which can then process the results data (e.g., break themachine data into events, timestamp it, filter it, etc.) and integratethe results data with the results data from other external data sources,and/or from data stores 208 of the search head 210. The search head 210performs such processing and can immediately start returning interim(streaming mode) results to the user at the requesting client device;simultaneously, the search head 210 is waiting for the ERP process toprocess the data it is retrieving from the external data source as aresult of the concurrently executing reporting mode.

In some instances, the ERP process initially operates in a mixed mode,such that the streaming mode operates to enable the ERP quickly toreturn interim results (e.g., some of the machined data or unprocesseddata necessary to respond to a search request) to the search head 210,enabling the search head 210 to process the interim results and beginproviding to the client or search requester interim results that areresponsive to the query. Meanwhile, in this mixed mode, the ERP alsooperates concurrently in reporting mode, processing portions of machinedata in a manner responsive to the search query. Upon determining thatit has results from the reporting mode available to return to the searchhead, the ERP may halt processing in the mixed mode at that time (orsome later time) by stopping the return of data in streaming mode to thesearch head 210 and switching to reporting mode only. The ERP at thispoint starts sending interim results in reporting mode to the searchhead 210, which in turn may then present this processed data responsiveto the search request to the client or search requester. Typically, thesearch head 210 switches from using results from the ERP's streamingmode of operation to results from the ERP's reporting mode of operationwhen the higher bandwidth results from the reporting mode outstrip theamount of data processed by the search head 210 in the streaming mode ofERP operation.

A reporting mode may have a higher bandwidth because the ERP does nothave to spend time transferring data to the search head 210 forprocessing all the machine data. In addition, the ERP may optionallydirect another processor to do the processing.

The streaming mode of operation does not need to be stopped to gain thehigher bandwidth benefits of a reporting mode; the search head couldsimply stop using the streaming mode results—and start using thereporting mode results—when the bandwidth of the reporting mode hascaught up with or exceeded the amount of bandwidth provided by thestreaming mode. Thus, a variety of triggers and ways to accomplish asearch head's switch from using streaming mode results to usingreporting mode results may be appreciated by one skilled in the art.

The reporting mode can involve the ERP process (or an external system)performing event breaking, timestamping, filtering of events to matchthe search query request, and calculating statistics on the results. Theuser can request particular types of data, such as if the search queryitself involves types of events, or the search request may ask forstatistics on data, such as on events that meet the search request. Ineither case, the search head understands the query language used in thereceived query request, which may be a proprietary language. One examplequery language is Splunk Processing Language (SPL) developed by theassignee of the application, Splunk Inc. The search head 210 typicallyunderstands how to use that language to obtain data from the indexers,which store data in a format used by the SPLUNK® Enterprise system.

The ERP processes 410, 412 support the search head 210, as the searchhead 210 is not ordinarily configured to understand the format in whichdata is stored in external data sources such as Hadoop or SQL datasystems. Rather, the ERP process performs that translation from thequery submitted in the search support system's native format (e.g., SPLif SPLUNK® ENTERPRISE is used as the search support system) to a searchquery request format that will be accepted by the corresponding externaldata system. The external data system typically stores data in adifferent format from that of the search support system's native indexformat, and it utilizes a different query language (e.g., SQL orMapReduce, rather than SPL or the like).

As noted, the ERP process can operate in the streaming mode alone. Afterthe ERP process has performed the translation of the query request andreceived raw results from the streaming mode, the search head canintegrate the returned data with any data obtained from local datasources (e.g., native to the search support system), other external datasources, and other ERP processes (if such operations were required tosatisfy the terms of the search query). An advantage of mixed modeoperation is that, in addition to streaming mode, the ERP process isalso executing concurrently in reporting mode. Thus, the ERP process(rather than the search head 210) is processing query results (e.g.,performing event breaking, timestamping, filtering, possibly calculatingstatistics if required to be responsive to the search query request,etc.). It should be apparent to those skilled in the art that additionaltime is needed for the ERP process to perform the processing in such aconfiguration. Therefore, the streaming mode will allow the search head210 to start returning interim results to the user at the client devicebefore the ERP process can complete sufficient processing to startreturning any search results. The switchover between streaming andreporting mode happens when the ERP process determines that theswitchover is appropriate, such as when the ERP process determines itcan begin returning meaningful results from its reporting mode.

The operation described above illustrates the source of operationallatency: streaming mode has low latency (immediate results) and usuallyhas relatively low bandwidth (fewer results can be returned per unit oftime). In contrast, the concurrently running reporting mode hasrelatively high latency (it has to perform a lot more processing beforereturning any results) and usually has relatively high bandwidth (moreresults can be processed per unit of time). For example, when the ERPprocess does begin returning report results, it returns more processedresults than in the streaming mode, because, e.g., statistics only needto be calculated to be responsive to the search request. That is, theERP process doesn't have to take time to first return machine data tothe search head 210. As noted, the ERP process could be configured tooperate in streaming mode alone and return just the machine data for thesearch head 210 to process in a way that is responsive to the searchrequest. Alternatively, the ERP process can be configured to operate inthe reporting mode only. Also, the ERP process can be configured tooperate in streaming mode and reporting mode concurrently, as described,with the ERP process stopping the transmission of streaming results tothe search head 210 when the concurrently running reporting mode hascaught up and started providing results. The reporting mode does notrequire the processing of all machine data that is responsive to thesearch query request before the ERP process starts returning results;rather, the reporting mode usually performs processing of chunks ofevents and returns the processing results to the search head 210 foreach chunk.

For example, an ERP process can be configured to merely return thecontents of a search result file verbatim, with little or no processingof results. That way, the search head 210 performs all processing (suchas parsing byte streams into events, filtering, etc.). The ERP processcan be configured to perform additional intelligence, such as analyzingthe search request and handling all the computation that a native searchindexer process would otherwise perform. In this way, the configured ERPprocess provides greater flexibility in features while operatingaccording to desired preferences, such as response latency and resourcerequirements.

2.7. Data Ingestion

FIG. 5A is a flow chart of an example method that illustrates howindexers process, index, and store data received from forwarders, inaccordance with example embodiments. The data flow illustrated in FIG.5A is provided for illustrative purposes only; those skilled in the artwould understand that one or more of the steps of the processesillustrated in FIG. 5A may be removed or that the ordering of the stepsmay be changed. Furthermore, for the purposes of illustrating a clearexample, one or more particular system components are described in thecontext of performing various operations during each of the data flowstages. For example, a forwarder is described as receiving andprocessing machine data during an input phase; an indexer is describedas parsing and indexing machine data during parsing and indexing phases;and a search head is described as performing a search query during asearch phase. However, other system arrangements and distributions ofthe processing steps across system components may be used.

2.7.1. Input

At block 502, a forwarder receives data from an input source, such as adata source 202 shown in FIG. 2 . A forwarder initially may receive thedata as a raw data stream generated by the input source. For example, aforwarder may receive a data stream from a log file generated by anapplication server, from a stream of network data from a network device,or from any other source of data. In some embodiments, a forwarderreceives the raw data and may segment the data stream into “blocks”,possibly of a uniform data size, to facilitate subsequent processingsteps.

At block 504, a forwarder or other system component annotates each blockgenerated from the raw data with one or more metadata fields. Thesemetadata fields may, for example, provide information related to thedata block as a whole and may apply to each event that is subsequentlyderived from the data in the data block. For example, the metadatafields may include separate fields specifying each of a host, a source,and a source type related to the data block. A host field may contain avalue identifying a host name or IP address of a device that generatedthe data. A source field may contain a value identifying a source of thedata, such as a pathname of a file or a protocol and port related toreceived network data. A source type field may contain a valuespecifying a particular source type label for the data. Additionalmetadata fields may also be included during the input phase, such as acharacter encoding of the data, if known, and possibly other values thatprovide information relevant to later processing steps. In someembodiments, a forwarder forwards the annotated data blocks to anothersystem component (typically an indexer) for further processing.

The data intake and query system allows forwarding of data from one dataintake and query instance to another, or even to a third-party system.The data intake and query system can employ different types offorwarders in a configuration.

In some embodiments, a forwarder may contain the essential componentsneeded to forward data. A forwarder can gather data from a variety ofinputs and forward the data to an indexer for indexing and searching. Aforwarder can also tag metadata (e.g., source, source type, host, etc.).

In some embodiments, a forwarder has the capabilities of theaforementioned forwarder as well as additional capabilities. Theforwarder can parse data before forwarding the data (e.g., can associatea timestamp with a portion of data and create an event, etc.) and canroute data based on criteria such as source or type of event. Theforwarder can also index data locally while forwarding the data toanother indexer.

2.7.2. Components and Protocols for Receiving Data

In various embodiments, forwarders 204 may communicate with indexers 206via one or more data transfer protocols. Although any number of datatransfer protocols may be used, in some implementations, forwarders 204communicate with indexers 206 through use of a binary protocol referredto as “S2S” or “Splunk-to-Splunk” protocol. S2S protocol specifies that,after the forwarder 204 and indexer 206 connect over a network via aport, e.g., a Transmission Control Protocol (TCP) port, the forwarder204 sends a message to the indexer 206 describing the S2S protocolfeatures it would like to use. In response, the indexer 206 respondswith a message that describes the S2S protocol features that have beenaccepted for network communication with the forwarder 204, based on thefeature request description from forwarder 204. These requests mayinclude, for example, per-event ACK (acknowledgement) payloads, orvarious compression algorithms used to reduce the size of events to betransferred. After the forwarder 204 receives notification of thefeatures that will be used in communicating with indexer 206, theforwarder 204 begins sending serialized objects in binary format. Theobjects may include one or more events and/or various metadataassociated with the events. The objects may be compressed using variouscompression algorithms, or otherwise packaged, reduced, or encrypted. Insome embodiments, each event may be compressed separately, and in otherembodiments, packages of events may be compressed together. In otherembodiments, the S2S protocol may be used by forwarders 204 to sendinformation to any receiving component of the data intake and querysystem 108, including, e.g., components of the cloud-based data intakeand query system 306.

In various embodiments, other data transfer protocols may be used totransmit data from the one or more data sources 102 into the data intakeand query system. Specifically, in various embodiments, it may beadvantageous to set up protocols for transmitting data into the dataintake and query system without requiring the use of forwarders 204.Thus, there are embodiments in which the Hyper Text Transfer Protocol(HTTP) can be used to transmit data from data sources 102 to the dataintake and query system. In order to facilitate use of HTTP to transmitthis data, various embodiments of data intake and query system 108 mayinclude an HTTP Event Collector, or “HEC.” The HEC is an agent that ispart of the data intake and query system 108, and which can receiveinformation sent from data sources 102. Use of the HEC has the advantageof generally not requiring any additional components, either hardware orsoftware, to be added to or installed on the data sources 102, beyondwhat is required to send messages using HTTP “POST” commands.

In various embodiments, the HEC operates at the data intake and querysystem 108 to receive HTTP POST requests from various sources, e.g.,data sources 102. The HEC begins the process through generation oftokens, which can be distributed to the data sources 102 through avariety of known methods, both manual and automated. A data source 102can access the HEC by sending an HEC token to the HEC, e.g., through theauthentication header of an HTTP POST request. Once this token isrecognized by the HEC, the data source 102 can send data in any formatto the HEC, using the HTTP POST command. Although any type of data canbe sent to the HEC through an HTTP POST command, in variousimplementations, event data may be submitted, either in raw text format,or in JavaScript Object Notation (JSON) format. In variousimplementations, events sent in the JSON format may include metadata,such as one or more of a timestamp of the event, a host name of theevent, a source of the event, and a sourcetype of the event. Uponreceipt of the data from the HTTP POST command, the HEC may send thedata to an indexer 206, or, for example, in a cloud-based data intakeand query system 306, place the data in an ingestion buffer, such as amessage-oriented pub/sub or a stream processor.

2.7.3. Parsing

At block 506, an indexer receives data blocks from a forwarder andparses the data to organize the data into events. In some embodiments,to organize the data into events, an indexer may determine a source typeassociated with each data block (e.g., by extracting a source type labelfrom the metadata fields associated with the data block, etc.) and referto a source type configuration corresponding to the identified sourcetype. The source type definition may include one or more properties thatindicate to the indexer to automatically determine the boundaries withinthe received data that indicate the portions of machine data for events.In general, these properties may include regular expression-based rulesor delimiter rules where, for example, event boundaries may be indicatedby predefined characters or character strings. These predefinedcharacters may include punctuation marks or other special charactersincluding, for example, carriage returns, tabs, spaces, line breaks,etc. If a source type for the data is unknown to the indexer, an indexermay infer a source type for the data by examining the structure of thedata. Then, the indexer can apply an inferred source type definition tothe data to create the events.

At block 508, the indexer determines a timestamp for each event. Similarto the process for parsing machine data, an indexer may again refer to asource type definition associated with the data to locate one or moreproperties that indicate instructions for determining a timestamp foreach event. The properties may, for example, instruct an indexer toextract a time value from a portion of data for the event, tointerpolate time values based on timestamps associated with temporallyproximate events, to create a timestamp based on a time the portion ofmachine data was received or generated, to use the timestamp of aprevious event, or use any other rules for determining timestamps.

At block 510, the indexer associates with each event one or moremetadata fields including a field containing the timestamp determinedfor the event. In some embodiments, a timestamp may be included in themetadata fields. These metadata fields may include any number of“default fields” that are associated with all events and may alsoinclude one or more custom fields as defined by a user. Similar to themetadata fields associated with the data blocks at block 504, thedefault metadata fields associated with each event may include a host,source, and source type field including or in addition to a fieldstoring the timestamp.

At block 512, an indexer may optionally apply one or moretransformations to data included in the events created at block 506. Forexample, such transformations can include removing a portion of an event(e.g., a portion used to define event boundaries, extraneous charactersfrom the event, other extraneous text, etc.), masking a portion of anevent (e.g., masking a credit card number), removing redundant portionsof an event, etc. The transformations applied to events may, forexample, be specified in one or more configuration files and referencedby one or more source type definitions.

FIG. 5C illustrates an illustrative example of machine data can bestored in a data store in accordance with various disclosed embodiments.In other embodiments, machine data can be stored in a flat file in acorresponding bucket with an associated index file, such as a timeseries index or “TSIDX.” As such, the depiction of machine data andassociated metadata as rows and columns in the table of FIG. 5C ismerely illustrative and is not intended to limit the data format inwhich the machine data and metadata is stored in various embodimentsdescribed herein. In one particular embodiment, machine data can bestored in a compressed or encrypted formatted. In such embodiments, themachine data can be stored with or be associated with data thatdescribes the compression or encryption scheme with which the machinedata is stored. The information about the compression or encryptionscheme can be used to decompress or decrypt the machine data, and anymetadata with which it is stored, at search time.

As mentioned above, certain metadata, e.g., host 536, source 537, sourcetype 538 and timestamps 535 can be generated for each event, andassociated with a corresponding portion of machine data 539 when storingthe event data in a data store, e.g., data store 208. Any of themetadata can be extracted from the corresponding machine data, orsupplied or defined by an entity, such as a user or computer system. Themetadata fields can become part of or stored with the event. Note thatwhile the timestamp metadata field 535 can be extracted from the rawdata of each event, the values for the other metadata fields may bedetermined by the indexer based on information it receives pertaining tothe source of the data separate from the machine data.

While certain default or user-defined metadata fields can be extractedfrom the machine data for indexing purposes, all the machine data withinan event can be maintained in its original condition. As such, inembodiments in which the portion of machine data included in an event isunprocessed or otherwise unaltered, it is referred to herein as aportion of raw machine data. In other embodiments, the port of machinedata in an event can be processed or otherwise altered. As such, unlesscertain information needs to be removed for some reasons (e.g.,extraneous information, confidential information), all the raw machinedata contained in an event can be preserved and saved in its originalform. Accordingly, the data store in which the event records are storedis sometimes referred to as a “raw record data store.” The raw recorddata store contains a record of the raw event data tagged with thevarious default fields.

In FIG. 5C, the first three rows of the table represent events 531, 532,and 533 and are related to a server access log that records requestsfrom multiple clients processed by a server, as indicated by entry of“access.log” in the source column 537.

In the example shown in FIG. 5C, each of the events 531-533 isassociated with a discrete request made from a client device. The rawmachine data generated by the server and extracted from a server accesslog can include the IP address of the client 540, the user id of theperson requesting the document 541, the time the server finishedprocessing the request 542, the request line from the client 543, thestatus code returned by the server to the client 545, the size of theobject returned to the client (in this case, the gif file requested bythe client) 546 and the time spent to serve the request in microseconds.As seen in FIG. 5C, all the raw machine data retrieved from the serveraccess log is retained and stored as part of the corresponding events,531-533 in the data store.

Event 534 is associated with an entry in a server error log, asindicated by “error.log” in the source column 537 that records errorsthat the server encountered when processing a client request. Similar tothe events 531-533 related to the server access log, all the raw machinedata in the error log file pertaining to event 534 can be preserved andstored as part of the event 534.

Saving minimally processed or unprocessed machine data in a data storeassociated with metadata fields in the manner similar to that shown inFIG. 5C is advantageous because it allows search of all the machine dataat search time instead of searching only previously specified andidentified fields or field-value pairs. As mentioned above, because datastructures used by various embodiments of the present disclosuremaintain the underlying raw machine data and use a late-binding schemafor searching the raw machines data, it enables a user to continueinvestigating and learn valuable insights about the raw data. In otherwords, the user is not compelled to know about all the fields ofinformation that will be needed at data ingestion time. As a user learnsmore about the data in the events, the user can continue to refine thelate-binding schema by defining new extraction rules or modifying ordeleting existing extraction rules used by the system.

2.7.4. Indexing

At blocks 514 and 516, an indexer can optionally generate a keywordindex to facilitate fast keyword searching for events. To build akeyword index, at block 514, the indexer identifies a set of keywords ineach event. At block 516, the indexer includes the identified keywordsin an index, which associates each stored keyword with referencepointers to events containing that keyword (or to locations withinevents where that keyword is located, other location identifiers, etc.).When an indexer subsequently receives a keyword-based query, the indexercan access the keyword index to quickly identify events containing thekeyword.

In some embodiments, the keyword index may include entries for fieldname-value pairs found in events, where a field name-value pair caninclude a pair of keywords connected by a symbol, such as an equals signor colon. This way, events containing these field name-value pairs canbe quickly located. In some embodiments, fields can automatically begenerated for some or all of the field names of the field name-valuepairs at the time of indexing. For example, if the string“dest=10.0.1.2” is found in an event, a field named “dest” may becreated for the event and assigned a value of “10.0.1.2”.

At block 518, the indexer stores the events with an associated timestampin a data store 208. Timestamps enable a user to search for events basedon a time range. In some embodiments, the stored events are organizedinto “buckets,” where each bucket stores events associated with aspecific time range based on the timestamps associated with each event.This improves time-based searching, as well as allows for events withrecent timestamps, which may have a higher likelihood of being accessed,to be stored in a faster memory to facilitate faster retrieval. Forexample, buckets containing the most recent events can be stored inflash memory rather than on a hard disk. In some embodiments, eachbucket may be associated with an identifier, a time range, and a sizeconstraint.

Each indexer 206 may be responsible for storing and searching a subsetof the events contained in a corresponding data store 208. Bydistributing events among the indexers 206 and data stores 208, theindexers 206 can analyze events for a query in parallel. For example,using map-reduce techniques, each indexer 206 returns partial responsesfor a subset of events to a search head 210 that combines the results toproduce an answer for the query. By storing events in buckets forspecific time ranges, an indexer 206 may further optimize the dataretrieval process by searching buckets corresponding to time ranges thatare relevant to a query. In some embodiments, each bucket may beassociated with an identifier, a time range, and a size constraint. Incertain embodiments, a bucket can correspond to a file system directoryand the machine data, or events, of a bucket can be stored in one ormore files of the file system directory. The file system directory caninclude additional files, such as one or more inverted indexes, highperformance indexes, permissions files, configuration files, etc.

In some embodiments, each indexer has a home directory and a colddirectory. The home directory of an indexer stores hot buckets and warmbuckets, and the cold directory of an indexer stores cold buckets. A hotbucket is a bucket that is capable of receiving and storing events. Awarm bucket is a bucket that can no longer receive events for storagebut has not yet been moved to the cold directory. A cold bucket is abucket that can no longer receive events and may be a bucket that waspreviously stored in the home directory. The home directory may bestored in faster memory, such as flash memory, as events may be activelywritten to the home directory, and the home directory may typicallystore events that are more frequently searched and thus are accessedmore frequently. The cold directory may be stored in slower and/orlarger memory, such as a hard disk, as events are no longer beingwritten to the cold directory, and the cold directory may typicallystore events that are not as frequently searched and thus are accessedless frequently. In some embodiments, an indexer may also have aquarantine bucket that contains events having potentially inaccurateinformation, such as an incorrect timestamp associated with the event ora timestamp that appears to be an unreasonable timestamp for thecorresponding event. The quarantine bucket may have events from any timerange; as such, the quarantine bucket may always be searched at searchtime. Additionally, an indexer 206 may store old, archived data in afrozen bucket that is not capable of being searched at search time. Insome embodiments, a frozen bucket may be stored in slower and/or largermemory, such as a hard disk, and may be stored in offline and/or remotestorage.

Moreover, events and buckets can also be replicated across differentindexers 206 and data stores 208 to facilitate high availability anddisaster recovery as described in U.S. Pat. No. 9,130,971, entitled“SITE-BASED SEARCH AFFINITY”, issued on 8 Sep. 2015, and in U.S. patentSer. No. 14/266,817, entitled “MULTI-SITE CLUSTERING”, issued on 1 Sep.2015, each of which is hereby incorporated by reference in its entiretyfor all purposes.

FIG. 5B is a block diagram of an example data store 501 that includes adirectory for each index (or partition) that contains a portion of datamanaged by an indexer 206. FIG. 5B further illustrates details of anembodiment of an inverted index 507B and an event reference array 515associated with inverted index 507B.

The data store 501 can correspond to a data store 208 that stores eventsmanaged by an indexer 206 or can correspond to a different data storeassociated with an indexer 206. In the illustrated embodiment, the datastore 501 includes a _main directory 503 associated with a _main indexand a _test directory 505 associated with a _test index. However, thedata store 501 can include fewer or more directories. In someembodiments, multiple indexes can share a single directory, or allindexes can share a common directory. Additionally, although illustratedas a single data store 501, it will be understood that the data store501 can be implemented as multiple data stores storing differentportions of the information shown in FIG. 5B. For example, a singleindex or partition can span multiple directories or multiple data storesand can be indexed or searched by multiple corresponding indexers.

In the illustrated embodiment of FIG. 5B, the index-specific directories503 and 505 include inverted indexes 507A, 507B and 509A, 509B,respectively. The inverted indexes 507A . . . 507B, and 509A . . . 509Bcan be keyword indexes or field-value pair indexes described herein andcan include less or more information that depicted in FIG. 5B.

In some embodiments, the inverted index 507A . . . 507B, and 509A . . .509B can correspond to a distinct time-series bucket that is managed bythe indexer 206 and that contains events corresponding to the relevantindex (e.g., _main index, _test index). As such, each inverted index507A . . . 507B, and 509A . . . 509B can correspond to a particularrange of time for an index. Additional files, such as high-performanceindexes for each time-series bucket of an index, can also be stored inthe same directory as the inverted indexes 507A . . . 507B, and 509A . .. 509B. In some embodiments inverted index 507A . . . 507B, and 509A . .. 509B can correspond to multiple time-series buckets or invertedindexes 507A . . . 507B, and 509A . . . 509B can correspond to a singletime-series bucket.

Each inverted index 507A . . . 507B, and 509A . . . 509B can include oneor more entries, such as keyword (or token) entries or field-value pairentries. Furthermore, in certain embodiments, the inverted indexes 507A. . . 507B, and 509A . . . 509B can include additional information, suchas a time range 523 associated with the inverted index 507A . . . 507B,and 509A . . . 509B or an index identifier 525 identifying the indexassociated with the inverted index 507A . . . 507B, and 509A . . . 509B.However, each inverted index 507A . . . 507B, and 509A . . . 509B caninclude less or more information than depicted.

Token entries, such as token entries 511 illustrated in inverted index507B, can include a token 511A (e.g., “error,” “itemID,” etc.) and eventreferences 511B indicative of events that include the token 511A. Forexample, for the token “error,” 511A the corresponding token entry 511includes the token “error” 511A and an event reference, or uniqueidentifier, for each event stored in the corresponding time-seriesbucket that includes the token “error.” 511A. In the illustratedembodiment of FIG. 5B, the error token entry 511 includes theidentifiers 3, 5, 6, 8, 11, and 12 corresponding to events managed bythe indexer 206 and associated with the index_main 503 that is locatedin the time-series bucket associated with the inverted index 507B.

In some cases, some token entries 511 can be default entries,automatically determined entries, or user specified entries. In someembodiments, the indexer 206 can identify each word or string in anevent as a distinct token and generate a token entry 511 for it. In somecases, the indexer 206 can identify the beginning and ending of tokensbased on punctuation, spaces, as described in greater detail herein. Incertain cases, the indexer 206 can rely on user input or a configurationfile to identify tokens for token entries 511, etc. It will beunderstood that any combination of token entries 511 can be included asa default, automatically determined, and/or included based onuser-specified criteria.

Similarly, field-value pair entries, such as field-value pair entries513 shown in inverted index 507B, can include a field-value pair 513Aand event references 513B indicative of events that include a fieldvalue that corresponds to the field-value pair 513A. For example, for afield-value pair sourcetype::sendmail, a field-value pair entry wouldinclude the field-value pair sourcetype::sendmail and a uniqueidentifier, or event reference, for each event stored in thecorresponding time-series bucket that includes a sendmail sourcetype.

In some cases, the field-value pair entries 513 can be default entries,automatically determined entries, or user specified entries. As anon-limiting example, the field-value pair entries 513 for the fieldshost, source, sourcetype can be included in the inverted indexes 507A .. . 507B, and 509A . . . 509B as a default. As such, all of the invertedindexes 507A . . . 507B, and 509A . . . 509B can include field-valuepair entries 513 for the fields host, source, sourcetype. As yet anothernon-limiting example, the field-value pair entries 513 for theIP_address field can be user specified and may only appear in theinverted index 507B based on user-specified criteria. As anothernon-limiting example, as the indexer 206 indexes the events, it canautomatically identify field-value pairs and create field-value pairentries 513. For example, based on the indexers 206 review of events, itcan identify IP_address as a field in each event and add the IP_addressfield-value pair entries 513 to the inverted index 507B. It will beunderstood that any combination of field-value pair entries 513 can beincluded as a default, automatically determined, or included based onuser-specified criteria.

Each unique identifier 517, or event reference, can correspond to aunique event located in the time series bucket. However, the same eventreference can be located in multiple entries. For example, if an eventhas a sourcetype splunkd, host www1 and token “warning,” then the uniqueidentifier for the event will appear in the field-value pair entries 513sourcetype::splunkd and host::www1, as well as the token entry“warning.” 511. With reference to the illustrated embodiment of FIG. 5Band the event that corresponds to the event reference 3, the eventreference 3 is found in the field-value pair entries 513 host::hostA,source::sourceB, sourcetype::sourcetypeA, and IP_address::91.205.189.15indicating that the event corresponding to the event references is fromhostA, sourceB, of sourcetypeA, and includes 91.205.189.15 in the eventdata.

For some fields, the unique identifier is located in only onefield-value pair entry for a particular field. For example, the invertedindex 507B may include four sourcetype field-value pair entriescorresponding to four different sourcetypes of the events stored in abucket (e.g., sourcetypes: sendmail, splunkd, web_access, andweb_service). Within those four sourcetype field-value pair entries, anidentifier for a particular event may appear in only one of thefield-value pair entries 513. With continued reference to the exampleillustrated embodiment of FIG. 5B, since the event reference 7 appearsin the field-value pair entry sourcetype::sourcetypeA, then it does notappear in the other field-value pair entries for the sourcetype field,including sourcetype::sourcetypeB, sourcetype::sourcetypeC, andsourcetype::sourcetypeD.

The event references 517 can be used to locate the events in thecorresponding bucket. For example, the inverted index 507B can include,or be associated with, an event reference array 515. The event referencearray 515 can include an array entry 517 for each event reference in theinverted index 507B. Each array entry 517 can include locationinformation 519 of the event corresponding to the unique identifier(non-limiting example: seek address of the event), a timestamp 521associated with the event, or additional information regarding the eventassociated with the event reference, etc.

For each token entry 511 or field-value pair entry 513, the eventreference or unique identifiers can be listed in chronological order, orthe value of the event reference can be assigned based on chronologicaldata, such as a timestamp associated with the event referenced by theevent reference. For example, the event reference 1 in the illustratedembodiment of FIG. 5B can correspond to the first-in-time event for thebucket, and the event reference 12 can correspond to the last-in-timeevent for the bucket. However, the event references can be listed in anyorder, such as reverse chronological order, ascending order, descendingorder, or some other order, etc. Further, the entries can be sorted. Forexample, the entries can be sorted alphabetically (collectively orwithin a particular group), by entry origin (e.g., default,automatically generated, user-specified, etc.), by entry type (e.g.,field-value pair entry, token entry, etc.), or chronologically by whenadded to the inverted index 507B, etc. In the illustrated embodiment ofFIG. 5B, the entries are sorted first by entry type and thenalphabetically.

As a non-limiting example of how the inverted indexes 507A . . . 507B,and 509A . . . 509B can be used during a data categorization requestcommand, the indexers 206 can receive filter criteria indicating datathat is to be categorized and categorization criteria indicating how thedata is to be categorized. Example filter criteria can include, but isnot limited to, indexes (or partitions), hosts, sources, sourcetypes,time ranges, field identifier, keywords, etc.

Using the filter criteria, the indexer 206 identifies relevant invertedindexes to be searched. For example, if the filter criteria include aset of partitions, the indexer 206 can identify the inverted indexes507A . . . 507B, and 509A . . . 509B stored in the directorycorresponding to the particular partition as relevant inverted indexes.Other means can be used to identify inverted indexes associated with apartition of interest. For example, in some embodiments, the indexer 206can review an entry in the inverted indexes 507A . . . 507B, and 509A .. . 509B, such as a field-value pair entry 513 to determine if aparticular inverted index is relevant. If the filter criteria do notidentify any partition, then the indexer 206 can identify all invertedindexes managed by the indexer 206 as relevant inverted indexes.

Similarly, if the filter criteria include a time range, the indexer 206can identify inverted indexes corresponding to buckets that satisfy atleast a portion of the time range as relevant inverted indexes. Forexample, if the time range is last hour then the indexer 206 canidentify all inverted indexes that correspond to buckets storing eventsassociated with timestamps within the last hour as relevant invertedindexes.

When used in combination, an index filter criterion specifying one ormore partitions and a time range filter criterion specifying aparticular time range can be used to identify a subset of invertedindexes within a particular directory (or otherwise associated with aparticular partition) as relevant inverted indexes. As such, the indexer206 can focus the processing to only a subset of the total number ofinverted indexes that the indexer manages.

Once the relevant inverted indexes are identified, the indexer canreview them using any additional filter criteria to identify events thatsatisfy the filter criteria. In some cases, using the known location ofthe directory in which the relevant inverted indexes are located, theindexer can determine that any events identified using the relevantinverted indexes satisfy an index filter criterion. For example, if thefilter criteria include a partition main, then the indexer can determinethat any events identified using inverted indexes within the partitionmain directory (or otherwise associated with the partition main) satisfythe index filter criterion.

Furthermore, based on the time range associated with each invertedindex, the indexer 206 can determine that that any events identifiedusing a particular inverted index satisfies a time range filtercriterion. For example, if a time range filter criterion is for the lasthour and a particular inverted index corresponds to events within a timerange of 50 minutes ago to 35 minutes ago, the indexer 206 can determinethat any events identified using the particular inverted index satisfythe time range filter criterion. Conversely, if the particular invertedindex corresponds to events within a time range of 59 minutes ago to 62minutes ago, the indexer can determine that some events identified usingthe particular inverted index may not satisfy the time range filtercriterion.

Using the inverted indexes 507A . . . 507B, and 509A . . . 509B, theindexer 206 can identify event references (and therefore events) thatsatisfy the filter criteria. For example, if the token “error” 511A is afilter criterion, the indexer 206 can track all event references withinthe token entry “error.” 511A. Similarly, the indexer 206 can identifyother event references located in other token entries or field-valuepair entries 513 that match the filter criteria. The system can identifyevent references located in all of the entries identified by the filtercriteria. For example, if the filter criteria include the token “error”511A and field-value pair sourcetype::web_ui, the indexer 206 can trackthe event references found in both the token entry “error” 511A and thefield-value pair entry 513 sourcetype::web_ui. As mentioned previously,in some cases, such as when multiple values are identified for aparticular filter criterion (e.g., multiple sources for a source filtercriterion), the system can identify event references located in at leastone of the entries corresponding to the multiple values and in all otherentries identified by the filter criteria. The indexer 206 can determinethat the events associated with the identified event references satisfythe filter criteria.

In some cases, the indexer 206 can further consult a timestampassociated with the event reference to determine whether an eventsatisfies the filter criteria. For example, if an inverted indexcorresponds to a time range that is partially outside of a time rangefilter criterion, then the indexer 206 can consult a timestampassociated with the event reference to determine whether thecorresponding event satisfies the time range criterion. In someembodiments, to identify events that satisfy a time range, the indexer206 can review an array, such as the event reference array 515 thatidentifies the time associated with the events. Furthermore, asmentioned above using the known location of the directory in which therelevant inverted indexes are located (or other index identifier), theindexer 206 can determine that any events identified using the relevantinverted indexes satisfy the index filter criterion.

In some cases, based on the filter criteria, the indexer 206 reviews anextraction rule. In certain embodiments, if the filter criteria includesa field name that does not correspond to a field-value pair entry 513 inan inverted index, the indexer 206 can review an extraction rule, whichmay be located in a configuration file, to identify a field thatcorresponds to a field-value pair entry 513 in the inverted index 507B.

For example, the filter criteria includes a field name “sessionID” andthe indexer determines that at least one relevant inverted index doesnot include a field-value pair entry 513 corresponding to the field namesessionID, the indexer can review an extraction rule that identifies howthe sessionID field is to be extracted from a particular host, source,or sourcetype (implicitly identifying the particular host, source, orsourcetype that includes a sessionID field). The indexer can replace thefield name “sessionID” in the filter criteria with the identified host,source, or sourcetype. In some cases, the field name “sessionID” may beassociated with multiples hosts, sources, or sourcetypes, in which case,all identified hosts, sources, and sourcetypes can be added as filtercriteria. In some cases, the identified host, source, or sourcetype canreplace or be appended to a filter criterion or be excluded. Forexample, if the filter criteria include a criterion for source S1 andthe “sessionID” field is found in source S2, the source S2 can replaceS1 in the filter criteria, be appended such that the filter criteriaincludes source S1 and source S2, or be excluded based on the presenceof the filter criterion source S1. If the identified host, source, orsourcetype is included in the filter criteria, the indexer can thenidentify a field-value pair entry 513 in the inverted index 507B thatincludes a field value corresponding to the identity of the particularhost, source, or sourcetype identified using the extraction rule.

Once the events that satisfy the filter criteria are identified, thedata intake and query system, such as the indexer 206 can categorize theresults based on the categorization criteria. The categorizationcriteria can include categories for grouping the results, such as anycombination of partition, source, sourcetype, or host, or othercategories or fields as desired.

The indexer 206 can use the categorization criteria to identifycategorization criteria-value pairs or categorization criteria values bywhich to categorize or group the results. The categorizationcriteria-value pairs can correspond to one or more field-value pairentries 513 stored in a relevant inverted index, one or more index-valuepairs based on a directory in which the inverted index 507B is locatedor an entry in the inverted index 507B (or other means by which aninverted index can be associated with a partition), or othercriteria-value pair that identifies a general category and a particularvalue for that category. The categorization criteria values cancorrespond to the value portion of the categorization criteria-valuepair.

As mentioned, in some cases, the categorization criteria-value pairs cancorrespond to one or more field-value pair entries 513 stored in therelevant inverted indexes. For example, the categorizationcriteria-value pairs can correspond to field-value pair entries 513 ofhost, source, and sourcetype (or other field-value pair entry 513 asdesired). For instance, if there are ten different hosts, four differentsources, and five different sourcetypes for an inverted index, then theinverted index 507B can include ten host field-value pair entries, foursource field-value pair entries, and five sourcetype field-value pairentries. The indexer 206 can use the nineteen distinct field-value pairentries as categorization criteria-value pairs to group the results.

Specifically, the indexer 206 can identify the location of the eventreferences associated with the events that satisfy the filter criteriawithin the field-value pairs and group the event references based ontheir location. As such, the indexer 206 can identify the particularfield value associated with the event corresponding to the eventreference. For example, if the categorization criteria include host andsourcetype, the host field-value pair entries and sourcetype field-valuepair entries can be used as categorization criteria-value pairs toidentify the specific host and sourcetype associated with the eventsthat satisfy the filter criteria.

In addition, as mentioned, categorization criteria-value pairs cancorrespond to data other than the field-value pair entries 513 in therelevant inverted indexes. For example, if partition or index is used asa categorization criterion, the inverted indexes 507A . . . 507B, and509A . . . 509B may not include partition field-value pair entries.Rather, the indexer 206 can identify the categorization criteria-valuepair associated with the partition based on the directory in which aninverted index is located, information in the inverted index 507B, orother information that associates the inverted index 507B with thepartition, etc. As such a variety of methods can be used to identify thecategorization criteria-value pairs from the categorization criteria.

Accordingly based on the categorization criteria (and categorizationcriteria-value pairs), the indexer 206 can generate groupings based onthe events that satisfy the filter criteria. As a non-limiting example,if the categorization criteria include a partition and sourcetype, thenthe groupings can correspond to events that are associated with eachunique combination of partition and sourcetype. For instance, if thereare three different partitions and two different sourcetypes associatedwith the identified events, then the six different groups can be formed,each with a unique partition value-sourcetype value combination.Similarly, if the categorization criteria include partition, sourcetype,and host and there are two different partitions, three sourcetypes, andfive hosts associated with the identified events, then the indexer 206can generate up to thirty groups for the results that satisfy the filtercriteria. Each group can be associated with a unique combination ofcategorization criteria-value pairs (e.g., unique combinations ofpartition value sourcetype value, and host value).

In addition, the indexer 206 can count the number of events associatedwith each group based on the number of events that meet the uniquecombination of categorization criteria for a particular group (or matchthe categorization criteria-value pairs for the particular group). Withcontinued reference to the example above, the indexer 206 can count thenumber of events that meet the unique combination of partition,sourcetype, and host for a particular group.

Each indexer communicates the groupings to the search head 210. Thesearch head 210 can aggregate the groupings from the indexers 206 andprovide the groupings for display. In some cases, the groups aredisplayed based on at least one of the host, source, sourcetype, orpartition associated with the groupings. In some embodiments, the searchhead 210 can further display the groups based on display criteria, suchas a display order or a sort order as described in greater detail above.

As a non-limiting example and with reference to FIG. 5B, consider arequest received by an indexer 206 that includes the following filtercriteria: keyword=error, partition=_main, time range=Mar. 1, 201716:22.00.000-16:28.00.000, sourcetype=sourcetypeC, host=hostB, and thefollowing categorization criteria: source.

Based on the above criteria, the indexer 206 identifies_main directory503 and can ignore_test directory 505 and any other partition-specificdirectories. The indexer 206 determines that inverted partition 507B isa relevant partition based on its location within the _main directory503 and the time range associated with it. For sake of simplicity inthis example, the indexer 206 determines that no other inverted indexesin the _main directory 503, such as inverted index 507A satisfy the timerange criterion.

Having identified the relevant inverted index 507B, the indexer 206reviews the token entries 511 and the field-value pair entries 513 toidentify event references, or events that satisfy all of the filtercriteria.

With respect to the token entries 511, the indexer 206 can review theerror token entry and identify event references 3, 5, 6, 8, 11, 12,indicating that the term “error” is found in the corresponding events.Similarly, the indexer 206 can identify event references 4, 5, 6, 8, 9,10, 11 in the field-value pair entry 513 sourcetype::sourcetypeC andevent references 2, 5, 6, 8, 10, 11 in the field-value pair entry 513host::hostB. As the filter criteria did not include a source or anIP_address field-value pair, the indexer 206 can ignore thosefield-value pair entries.

In addition to identifying event references found in at least one tokenentry or field-value pair entry (e.g., event references 3, 4, 5, 6, 8,9, 10, 11, 12), the indexer 206 can identify events (and correspondingevent references) that satisfy the time range criterion using the eventreference array 1614 (e.g., event references 2, 3, 4, 5, 6, 7, 8, 9,10). Using the information obtained from the inverted index 507B(including the event reference array 515), the indexer 206 can identifythe event references that satisfy all of the filter criteria (e.g.,event references 5, 6, 8).

Having identified the events (and event references) that satisfy all ofthe filter criteria, the indexer 206 can group the event referencesusing the received categorization criteria (source). In doing so, theindexer can determine that event references 5 and 6 are located in thefield-value pair entry 513 source::sourceD (or have matchingcategorization criteria-value pairs) and event reference 8 is located inthe field-value pair entry 513 source::sourceC. Accordingly, the indexer206 can generate a sourceC group having a count of one corresponding toreference 8 and a sourceD group having a count of two corresponding toreferences 5 and 6. This information can be communicated to the searchhead 210. In turn the search head 210 can aggregate the results from thevarious indexers and display the groupings. As mentioned above, in someembodiments, the groupings can be displayed based at least in part onthe categorization criteria, including at least one of host, source,sourcetype, or partition.

It will be understood that a change to any of the filter criteria orcategorization criteria can result in different groupings. As a onenon-limiting example, a request received by an indexer 206 that includesthe following filter criteria: partition=_main, time range=Mar. 1, 2017Mar. 1, 2017 16:21:20.000-16:28:17.000, and the following categorizationcriteria: host, source, sourcetype would result in the indexeridentifying event references 1-12 as satisfying the filter criteria. Theindexer would then generate up to 24 groupings corresponding to the 24different combinations of the categorization criteria-value pairs,including host (hostA, hostB), source (sourceA, sourceB, sourceC,sourceD), and sourcetype (sourcetypeA, sourcetypeB, sourcetypeC).However, as there are only twelve events identifiers in the illustratedembodiment and some fall into the same grouping, the indexer generateseight groups and counts as follows:

Group 1 (hostA, sourceA, sourcetypeA): 1 (event reference 7)

Group 2 (hostA, sourceA, sourcetypeB): 2 (event references 1, 12)

Group 3 (hostA, sourceA, sourcetypeC): 1 (event reference 4)

Group 4 (hostA, sourceB, sourcetypeA): 1 (event reference 3)

Group 5 (hostA, sourceB, sourcetypeC): 1 (event reference 9)

Group 6 (hostB, sourceC, sourcetypeA): 1 (event reference 2)

Group 7 (hostB, sourceC, sourcetypeC): 2 (event references 8, 11)

Group 8 (hostB, sourceD, sourcetypeC): 3 (event references 5, 6, 10)

As noted, each group has a unique combination of categorizationcriteria-value pairs or categorization criteria values. The indexer 206communicates the groups to the search head 210 for aggregation withresults received from other indexers. In communicating the groups to thesearch head 210, the indexer 206 can include the categorizationcriteria-value pairs for each group and the count. In some embodiments,the indexer 206 can include more or less information. For example, theindexer 206 can include the event references associated with each groupand other identifying information, such as the indexer 206 or invertedindex used to identify the groups.

As another non-limiting examples, a request received by an indexer 206that includes the following filter criteria: partition=_main, timerange=Mar. 1, 2017 Mar. 1, 2017 16:21:20.000-16:28:17.000,source=sourceA, sourceD, and keyword=itemID and the followingcategorization criteria: host, source, sourcetype would result in theindexer 206 identifying event references 4, 7, and 10 as satisfying thefilter criteria, and generate the following groups:

Group 1 (hostA, sourceA, sourcetypeC): 1 (event reference 4)

Group 2 (hostA, sourceA, sourcetypeA): 1 (event reference 7)

Group 3 (hostB, sourceD, sourcetypeC): 1 (event references 10)

The indexer 206 communicates the groups to the search head 210 foraggregation with results received from other indexers. As will beunderstand there are myriad ways for filtering and categorizing theevents and event references. For example, the indexer 206 can reviewmultiple inverted indexes associated with a partition or review theinverted indexes 507A . . . 507B, and 509A . . . 509B of multiplepartitions, and categorize the data using any one or any combination ofpartition, host, source, sourcetype, or other category, as desired.

Further, if a user interacts with a particular group, the indexer 206can provide additional information regarding the group. For example, theindexer 206 can perform a targeted search or sampling of the events thatsatisfy the filter criteria and the categorization criteria for theselected group, also referred to as the filter criteria corresponding tothe group or filter criteria associated with the group.

In some cases, to provide the additional information, the indexer 206relies on the inverted index 507B. For example, the indexer 206 canidentify the event references associated with the events that satisfythe filter criteria and the categorization criteria for the selectedgroup and then use the event reference array 515 to access some or allof the identified events. In some cases, the categorization criteriavalues or categorization criteria-value pairs associated with the groupbecome part of the filter criteria for the review.

With reference to FIG. 5B for instance, suppose a group is displayedwith a count of six corresponding to event references 4, 5, 6, 8, 10, 11(i.e., event references 4, 5, 6, 8, 10, 11 satisfy the filter criteriaand are associated with matching categorization criteria values orcategorization criteria-value pairs) and a user interacts with the group(e.g., selecting the group, clicking on the group, etc.). In response,the search head 210 communicates with the indexer 206 to provideadditional information regarding the group.

In some embodiments, the indexer 206 identifies the event referencesassociated with the group using the filter criteria and thecategorization criteria for the group (e.g., categorization criteriavalues or categorization criteria-value pairs unique to the group).Together, the filter criteria and the categorization criteria for thegroup can be referred to as the filter criteria associated with thegroup. Using the filter criteria associated with the group, the indexeridentifies event references 4, 5, 6, 8, 10, 11.

Based on a sampling criteria, discussed in greater detail above, theindexer 206 can determine that it will analyze a sample of the eventsassociated with the event references 4, 5, 6, 8, 10, 11. For example,the sample can include analyzing event data associated with the eventreferences 5, 8, 10. In some embodiments, the indexer 206 can use theevent reference array 515 to access the event data associated with theevent references 5, 8, 10. Once accessed, the indexer 206 can compilethe relevant information and provide it to the search head 210 foraggregation with results from other indexers. By identifying events andsampling event data using the inverted indexes 507A . . . 507B, and 509A. . . 509B, the indexer 206 can reduce the amount of actual data this isanalyzed and the number of events that are accessed in order to generatethe summary of the group and provide a response in less time.

2.8. Query Processing

FIG. 6A is a flow diagram of an example method that illustrates how asearch head 210 and indexers 206 perform a search query, in accordancewith example embodiments. At block 602, a search head 210 receives asearch query from a client. At block 604, the search head 210 analyzesthe search query to determine what portion(s) of the query can bedelegated to indexers and what portions of the query can be executedlocally by the search head 210. At block 606, the search head 210distributes the determined portions of the query to the appropriateindexers. In some embodiments, a search head cluster may take the placeof an independent search head where each search head in the search head210 cluster coordinates with peer search heads in the search headcluster to schedule jobs, replicate search results, updateconfigurations, fulfill search requests, etc. In some embodiments, thesearch head (or each search head) 210 communicates with a master node(also known as a cluster master, not shown in FIG. 2 ) that provides thesearch head 210 with a list of indexers to which the search head 210 candistribute the determined portions of the query. The master nodemaintains a list of active indexers and can also designate whichindexers may have responsibility for responding to queries over certainsets of events. A search head 210 may communicate with the master nodebefore the search head 210 distributes queries to indexers to discoverthe addresses of active indexers.

At block 608, the indexers 206, to which the query was distributed,search the data stores associated with them for events that areresponsive to the query. To determine which events are responsive to thequery, the indexer searches for events that match the criteria specifiedin the query. These criteria can include matching keywords or specificvalues for certain fields. The searching operations at block 608 may usethe late-binding schema to extract values for specified fields fromevents at the time the query is processed. In some embodiments, one ormore rules for extracting field values may be specified as part of asource type definition in a configuration file. The indexers 206 maythen either send the relevant events back to the search head 210, or usethe events to determine a partial result, and send the partial resultback to the search head 210.

At block 610, the search head 210 combines the partial results and/orevents received from the indexers 206 to produce a final result for thequery. In some examples, the results of the query are indicative ofperformance or security of the IT environment and may help improve theperformance of components in the IT environment. This final result maycomprise different types of data depending on what the query requested.For example, the results can include a listing of matching eventsreturned by the query, or some type of visualization of the data fromthe returned events. In another example, the final result can includeone or more calculated values derived from the matching events.

The results generated by the data intake and query system 108 can bereturned to a client using different techniques. For example, onetechnique streams results or relevant events back to a client inreal-time as they are identified. Another technique waits to report theresults to the client until a complete set of results (which may includea set of relevant events or a result based on relevant events) is readyto return to the client. Yet another technique streams interim resultsor relevant events back to the client in real-time until a complete setof results is ready, and then returns the complete set of results to theclient. In another technique, certain results are stored as “searchjobs” and the client may retrieve the results by referring the searchjobs.

The search head 210 can also perform various operations to make thesearch more efficient. For example, before the search head 210 beginsexecution of a query, the search head 210 can determine a time range forthe query and a set of common keywords that all matching events include.The search head 210 may then use these parameters to query the indexers206 to obtain a superset of the eventual results. Then, during afiltering stage, the search head 210 can perform field-extractionoperations on the superset to produce a reduced set of search results.Performing field-extraction operations on the superset speeds upqueries, which may be particularly helpful for queries that areperformed on a periodic basis.

2.9. Pipelined Search Language

Various embodiments of the present disclosure can be implemented using,or in conjunction with, a pipelined command language. A pipelinedcommand language is a language in which a set of inputs or data isoperated on by a first command in a sequence of commands, and thensubsequent commands in the order they are arranged in the sequence. Suchcommands can include any type of functionality for operating on data,such as retrieving, searching, filtering, aggregating, processing,transmitting, and the like. As described herein, a query can thus beformulated in a pipelined command language and include any number ofordered or unordered commands for operating on data.

Splunk Processing Language (SPL) is an example of a pipelined commandlanguage in which a set of inputs or data is operated on by any numberof commands in a particular sequence. A sequence of commands, or commandsequence, can be formulated such that the order in which the commandsare arranged defines the order in which the commands are applied to aset of data or the results of an earlier executed command. For example,a first command in a command sequence can operate to search or filterfor specific data in particular set of data. The results of the firstcommand can then be passed to another command listed later in thecommand sequence for further processing.

In various embodiments, a query can be formulated as a command sequencedefined in a command line of a search UI. In some embodiments, a querycan be formulated as a sequence of SPL commands. Some or all of the SPLcommands in the sequence of SPL commands can be separated from oneanother by a pipe symbol “|”. In such embodiments, a set of data, suchas a set of events, can be operated on by a first SPL command in thesequence, and then a subsequent SPL command following a pipe symbol “|”after the first SPL command operates on the results produced by thefirst SPL command or other set of data, and so on for any additional SPLcommands in the sequence. As such, a query formulated using SPLcomprises a series of consecutive commands that are delimited by pipe“|” characters. The pipe character indicates to the data intake andquery system that the output or result of one command (to the left ofthe pipe) should be used as the input for one of the subsequent commands(to the right of the pipe). This enables formulation of queries definedby a pipeline of sequenced commands that refines or enhances the data ateach step along the pipeline until the desired results are attained.Accordingly, various embodiments described herein can be implementedwith Splunk Processing Language (SPL) used in conjunction with theSPLUNK® ENTERPRISE system.

While a query can be formulated in many ways, a query can start with asearch command and one or more corresponding search terms at thebeginning of the pipeline. Such search terms can include any combinationof keywords, phrases, times, dates, Boolean expressions, fieldname-fieldvalue pairs, etc. that specify which results should be obtained from anindex. The results can then be passed as inputs into subsequent commandsin a sequence of commands by using, for example, a pipe character. Thesubsequent commands in a sequence can include directives for additionalprocessing of the results once it has been obtained from one or moreindexes. For example, commands may be used to filter unwantedinformation out of the results, extract more information, evaluate fieldvalues, calculate statistics, reorder the results, create an alert,create summary of the results, or perform some type of aggregationfunction. In some embodiments, the summary can include a graph, a chart,a metric, or other visualization of the data. An aggregation functioncan include analysis or calculations to return an aggregate value, suchas an average value, a sum, a maximum value, a root mean square,statistical values, and the like.

Due to its flexible nature, use of a pipelined command language invarious embodiments is advantageous because it can perform “filtering”as well as “processing” functions. In other words, a single query caninclude a search command and search term expressions, as well asdata-analysis expressions. For example, a command at the beginning of aquery can perform a “filtering” step by retrieving a set of data basedon a condition (e.g., records associated with server response times ofless than 1 microsecond). The results of the filtering step can then bepassed to a subsequent command in the pipeline that performs a“processing” step (e.g., calculation of an aggregate value related tothe filtered events such as the average response time of servers withresponse times of less than 1 microsecond). Furthermore, the searchcommand can allow events to be filtered by keyword as well as fieldvalue criteria. For example, a search command can filter out all eventscontaining the word “warning” or filter out all events where a fieldvalue associated with a field “clientip” is “10.0.1.2.”

The results obtained or generated in response to a command in a querycan be considered a set of results data. The set of results data can bepassed from one command to another in any data format. In oneembodiment, the set of result data can be in the form of a dynamicallycreated table. Each command in a particular query can redefine the shapeof the table. In some implementations, an event retrieved from an indexin response to a query can be considered a row with a column for eachfield value. Columns contain basic information about the data and alsomay contain data that has been dynamically extracted at search time.

FIG. 6B provides a visual representation of the manner in which apipelined command language or query operates in accordance with thedisclosed embodiments. The query 630 can be inputted by the user into asearch. The query 630 comprises a search, the results of which are pipedto two commands (namely, command 1 and command 2) that follow the searchstep.

Disk 622 represents the event data in the raw record data store.

When a user query is processed, a search step will precede other queriesin the pipeline in order to generate a set of events at block 640. Forexample, the query 630 can comprise search terms “sourcetype=syslogERROR” at the front of the pipeline as shown in FIG. 6B. Intermediateresults table 624 shows fewer rows because it represents the subset ofevents retrieved from the index that matched the search terms“sourcetype=syslog ERROR” from search command. By way of furtherexample, instead of a search step, the set of events at the head of thepipeline may be generating by a call to a pre-existing inverted index(as will be explained later).

At block 642, the set of events generated in the first part of the querymay be piped to a query that searches the set of events for field-valuepairs or for keywords. For example, the second intermediate resultstable 626 shows fewer columns, representing the result of the topcommand, “top user” which summarizes the events into a list of the top10 users and displays the user, count, and percentage.

Finally, at block 644, the results of the prior stage can be pipelinedto another stage where further filtering or processing of the data canbe performed, e.g., preparing the data for display purposes, filteringthe data based on a condition, performing a mathematical calculationwith the data, etc. As shown in FIG. 6B, the “fields—percent” part ofquery 630 removes the column that shows the percentage, thereby, leavinga final results table 628 without a percentage column. In differentembodiments, other query languages, such as the Structured QueryLanguage (“SQL”), can be used to create a query 630.

2.10 Field Extraction

The search head 210 allows users to search and visualize eventsgenerated from machine data received from homogenous data sources. Thesearch head 210 also allows users to search and visualize eventsgenerated from machine data received from heterogeneous data sources.The search head 210 includes various mechanisms, which may additionallyreside in an indexer 206, for processing a query. A query language maybe used to create a query, such as any suitable pipelined querylanguage. For example, Splunk Processing Language (SPL) can be utilizedto make a query. SPL is a pipelined search language in which a set ofinputs is operated on by a first command in a command line, and then asubsequent command following the pipe symbol “|” operates on the resultsproduced by the first command, and so on for additional commands. Otherquery languages, such as the Structured Query Language (“SQL”), can beused to create a query.

In response to receiving the search query, search head 210 usesextraction rules to extract values for fields in the events beingsearched. The search head 210 obtains extraction rules that specify howto extract a value for fields from an event. Extraction rules cancomprise regex rules that specify how to extract values for the fieldscorresponding to the extraction rules. In addition to specifying how toextract field values, the extraction rules may also include instructionsfor deriving a field value by performing a function on a characterstring or value retrieved by the extraction rule. For example, anextraction rule may truncate a character string or convert the characterstring into a different data format. In some cases, the query itself canspecify one or more extraction rules.

The search head 210 can apply the extraction rules to events that itreceives from indexers 206. Indexers 206 may apply the extraction rulesto events in an associated data store 208. Extraction rules can beapplied to all the events in a data store 208 or to a subset of theevents that have been filtered based on some criteria (e.g., event timestamp values, etc.). Extraction rules can be used to extract one or morevalues for a field from events by parsing the portions of machine datain the events and examining the data for one or more patterns ofcharacters, numbers, delimiters, etc., that indicate where the fieldbegins and, optionally, ends.

FIG. 7A is a diagram of an example scenario where a common customeridentifier is found among log data received from three disparate datasources, in accordance with example embodiments. In this example, a usersubmits an order for merchandise using a vendor's shopping applicationprogram (e.g., order app 701) running on the user's system. In thisexample, the order was not delivered to the vendor's server due to aresource exception at the destination server that is detected by themiddleware code (e.g., middleware 702). The user then sends a message tothe customer support server (e.g., support server 703) to complain aboutthe order failing to complete. The three systems 701, 702, and 703 aredisparate systems that do not have a common logging format. The orderapp 701 sends log data 704 to the data intake and query system 108 inone format, the middleware code 702 sends error log data 705 in a secondformat, and the support server 703 sends log data 706 in a third format.

Using the log data received at one or more indexers 206 from the threesystems 701, 702, 703, the vendor can uniquely obtain an insight intouser activity, user experience, and system behavior. The search head 210allows the vendor's administrator to search the log data from the threesystems 701, 702, 703 that one or more indexers 206 are responsible forsearching, thereby obtaining correlated information, such as the ordernumber and corresponding customer ID number of the person placing theorder. The data intake and query system 108 also allows theadministrator to see a visualization of related events via a userinterface (UI). The administrator can query the search head 210 forcustomer ID field value matches across the log data from the threesystems 701, 702, 703 that are stored at the one or more indexers 206.The customer ID field value exists in the data gathered from the threesystems 701, 702, 703, but the customer ID field value may be located indifferent areas of the data given differences in the architecture of thesystems 701, 702, 703. There is a semantic relationship between thecustomer ID field values generated by the three systems 701, 702, 703.The search head 210 requests events from the one or more indexers 206 togather relevant events from the three systems 701, 702, 703. The searchhead 210 then applies extraction rules to the events in order to extractfield values that it can correlate. The search head 210 may apply adifferent extraction rule to each set of events from each system whenthe event format differs among systems. In this example, the UI candisplay to the administrator the events corresponding to the commoncustomer ID field values 707, 708, and 709, thereby providing theadministrator with insight into a customer's experience.

Note that query results can be returned to a client, a search head 210,or any other system component for further processing. In general, queryresults may include a set of one or more events, a set of one or morevalues obtained from the events, a subset of the values, statisticscalculated based on the values, a report containing the values, avisualization (e.g., a graph or chart) generated from the values, andthe like.

The search system enables users to run queries against the stored datato retrieve events that meet criteria specified in a query, such ascontaining certain keywords or having specific values in defined fields.FIG. 7B illustrates the manner in which keyword searches and fieldsearches are processed in accordance with disclosed embodiments.

If a user inputs a search query into a search bar 710 that includes onlykeywords (also known as “tokens”), e.g., the keyword “error” or“warning”, the query search engine of the data intake and query system108 searches for those keywords directly in the event data 711 stored inthe raw record data store. Note that while FIG. 7B only illustrates fourevents 712, 713, 714, 715, the raw record data store (corresponding todata store 208 in FIG. 2 ) may contain records for millions of events.

As disclosed above, an indexer 206 can optionally generate a keywordindex to facilitate fast keyword searching for event data. The indexer206 includes the identified keywords in an index, which associates eachstored keyword with reference pointers to events containing that keyword(or to locations within events where that keyword is located, otherlocation identifiers, etc.). When an indexer 206 subsequently receives akeyword-based query, the indexer 206 can access the keyword index toquickly identify events containing the keyword. For example, if thekeyword “HTTP” was indexed by the indexer 206 at index time, and theuser searches for the keyword “HTTP”, the events 712, 713, and 714, willbe identified based on the results returned from the keyword index. Asnoted above, the index contains reference pointers to the eventscontaining the keyword, which allows for efficient retrieval of therelevant events from the raw record data store.

If a user searches for a keyword that has not been indexed by theindexer 206, the data intake and query system 108 would nevertheless beable to retrieve the events by searching the event data for the keywordin the raw record data store directly as shown in FIG. 7B. For example,if a user searches for the keyword “frank”, and the name “frank” has notbeen indexed at index time, the data intake and query system 108 willsearch the event data directly and return the first event 712. Note thatwhether the keyword has been indexed at index time or not, in both casesthe raw data of the events 712-715 is accessed from the raw data recordstore to service the keyword search. In the case where the keyword hasbeen indexed, the index will contain a reference pointer that will allowfor a more efficient retrieval of the event data from the data store. Ifthe keyword has not been indexed, the search engine will need to searchthrough all the records in the data store to service the search.

In most cases, however, in addition to keywords, a user's search willalso include fields. The term “field” refers to a location in the eventdata containing one or more values for a specific data item. Often, afield is a value with a fixed, delimited position on a line, or a nameand value pair, where there is a single value to each field name. Afield can also be multivalued, that is, it can appear more than once inan event and have a different value for each appearance, e.g., emailaddress fields. Fields are searchable by the field name or fieldname-value pairs. Some examples of fields are “clientip” for IPaddresses accessing a web server, or the “From” and “To” fields in emailaddresses.

By way of further example, consider the search, “status=404”. Thissearch query finds events with “status” fields that have a value of“404.” When the search is run, the search engine does not look forevents with any other “status” value. It also does not look for eventscontaining other fields that share “404” as a value. As a result, thesearch returns a set of results that are more focused than if “404” hadbeen used in the search string as part of a keyword search. Note alsothat fields can appear in events as “key=value” pairs such as“user_name=Bob.” But in most cases, field values appear in fixed,delimited positions without identifying keys. For example, the datastore may contain events where the “user_name” value always appears byitself after the timestamp as illustrated by the following string:“November 15 09:33:22 johnmedlock.”

The data intake and query system 108 advantageously allows for searchtime field extraction. In other words, fields can be extracted from theevent data at search time using late-binding schema as opposed to atdata ingestion time, which was a major limitation of the prior artsystems.

In response to receiving the search query, search head 210 usesextraction rules to extract values for the fields associated with afield or fields in the event data being searched. The search head 210obtains extraction rules that specify how to extract a value for certainfields from an event. Extraction rules can comprise regex rules thatspecify how to extract values for the relevant fields. In addition tospecifying how to extract field values, the extraction rules may alsoinclude instructions for deriving a field value by performing a functionon a character string or value retrieved by the extraction rule. Forexample, a transformation rule may truncate a character string, orconvert the character string into a different data format. In somecases, the query itself can specify one or more extraction rules.

FIG. 7B illustrates the manner in which configuration files may be usedto configure custom fields at search time in accordance with thedisclosed embodiments. In response to receiving a search query, the dataintake and query system 108 determines if the query references a“field.” For example, a query may request a list of events where the“clientip” field equals “127.0.0.1.” If the query itself does notspecify an extraction rule and if the field is not a metadata field,e.g., time, host, source, source type, etc., then in order to determinean extraction rule, the search engine may, in one or more embodiments,need to locate configuration file 716 during the execution of the searchas shown in FIG. 7B.

Configuration file 716 may contain extraction rules for all the variousfields that are not metadata fields, e.g., the “clientip” field. Theextraction rules may be inserted into the configuration file in avariety of ways. In some embodiments, the extraction rules can compriseregular expression rules that are manually entered in by the user.Regular expressions match patterns of characters in text and are usedfor extracting custom fields in text.

In one or more embodiments, as noted above, a field extractor may beconfigured to automatically generate extraction rules for certain fieldvalues in the events when the events are being created, indexed, orstored, or possibly at a later time. In one embodiment, a user may beable to dynamically create custom fields by highlighting portions of asample event that should be extracted as fields using a graphical userinterface (GUI). The data intake and query system 108 would thengenerate a regular expression that extracts those fields from similarevents and store the regular expression as an extraction rule for theassociated field in the configuration file 716.

In some embodiments, the indexers 206 may automatically discover certaincustom fields at index time and the regular expressions for those fieldswill be automatically generated at index time and stored as part ofextraction rules in configuration file 716. For example, fields thatappear in the event data as “key=value” pairs may be automaticallyextracted as part of an automatic field discovery process. Note thatthere may be several other ways of adding field definitions toconfiguration files in addition to the methods discussed herein.

The search head 210 can apply the extraction rules derived fromconfiguration file 716 to event data that it receives from indexers 206.Indexers 206 may apply the extraction rules from the configuration file716 to events in an associated data store 208. Extraction rules can beapplied to all the events in a data store, or to a subset of the eventsthat have been filtered based on some criteria (e.g., event time stampvalues, etc.). Extraction rules can be used to extract one or morevalues for a field from events by parsing the event data and examiningthe event data for one or more patterns of characters, numbers,delimiters, etc., that indicate where the field begins and, optionally,ends.

In one or more embodiments, the extraction rule in the configurationfile 716 will also need to define the type or set of events that theextraction rule applies to. Because the raw record data store willcontain events from multiple heterogeneous sources, multiple events maycontain the same fields in different locations because of discrepanciesin the format of the data generated by the various sources. Furthermore,certain events may not contain a particular field at all. For example,event 715 also contains a “clientip” field, however, the “clientip”field is in a different format from the events 712, 713, and 714. Toaddress the discrepancies in the format and content of the differenttypes of events, the configuration file 716 will also need to specifythe set of events that an extraction rule 717 applies to, e.g.,extraction rule 717 specifies a rule for filtering by the type of eventand contains a regular expression for parsing out the field value.Accordingly, each extraction rule 717 will pertain to only a particulartype of event. If a particular field, e.g., “clientip”, occurs inmultiple events, each of those types of events would need its owncorresponding extraction rule 717 in the configuration file 716 and eachof the extraction rules 717 would comprise a different regularexpression to parse out the associated field value. The most common wayto categorize events is by source type because events generated by aparticular source can have the same format.

The field extraction rules 717 stored in configuration file 716 performsearch-time field extractions. For example, for a query that requests alist of events with source type “access_combined” where the “clientip”field equals “127.0.0.1,” the query search engine would first locate theconfiguration file 716 to retrieve extraction rule 717 that would allowit to extract values associated with the “clientip” field from the eventdata where the source type is “access_combined. After the “clientip”field has been extracted from all the events comprising the “clientip”field where the source type is “access_combined,” the query searchengine can then execute the field criteria by performing the compareoperation to filter out the events where the “clientip” field equals“127.0.0.1.” In the example shown in FIG. 7B, the events 712, 713, and714 would be returned in response to the user query. In this manner, thesearch engine can service queries containing field criteria in additionto queries containing keyword criteria (as explained above).

The configuration file 716 can be created during indexing. It may eitherbe manually created by the user or automatically generated with certainpredetermined field extraction rules 717. As discussed above, the eventsmay be distributed across several indexers 206, wherein each indexer 206may be responsible for storing and searching a subset of the eventscontained in a corresponding data store. In a distributed indexersystem, each indexer 206 would need to maintain a local copy of theconfiguration file 716 that is synchronized periodically across thevarious indexers 206.

The ability to add schema to the configuration file 716 at search timeresults in increased efficiency. A user can create new fields at searchtime and simply add field definitions to the configuration file 716. Asa user learns more about the data in the events, the user can continueto refine the late-binding schema by adding new fields, deleting fields,or modifying the field extraction rules in the configuration file 716for use the next time the schema is used by the system. Because the dataintake and query system 108 maintains the underlying raw data and useslate-binding schema for searching the raw data, it enables a user tocontinue investigating and learn valuable insights about the raw datalong after data ingestion time.

The ability to add multiple field definitions to the configuration file716 at search time also results in increased flexibility. For example,multiple field definitions can be added to the configuration file 716 tocapture the same field across events generated by different sourcetypes. This allows the data intake and query system 108 to search andcorrelate data across heterogeneous sources flexibly and efficiently.

Further, by providing the field definitions for the queried fields atsearch time, the configuration file 716 allows the record data store tobe field searchable. In other words, the raw record data store can besearched using keywords as well as fields, wherein the fields aresearchable name/value pairings that distinguish one event from anotherand can be defined in configuration file 716 using extraction rules 717.In comparison to a search containing field names, a keyword search doesnot need the configuration file 716 and can search the event datadirectly as shown in FIG. 7B.

It should also be noted that any events filtered out by performing asearch-time field extraction using a configuration file 716 can befurther processed by directing the results of the filtering step to aprocessing step using a pipelined search language. Using the priorexample, a user could pipeline the results of the compare step to anaggregate function by asking the query search engine to count the numberof events where the “clientip” field equals “127.0.0.1.”

2.11. Example Search Screen

FIG. 8A is an interface diagram of an example UI for a search screen800, in accordance with example embodiments. Search screen 800 includesa search bar 802 that accepts user input in the form of a search string.It also includes a time range picker 812 that enables the user tospecify a time range for the search. For historical searches (e.g.,searches based on a particular historical time range), the user canselect a specific time range, or alternatively a relative time range,such as “today,” “yesterday” or “last week.” For real-time searches(e.g., searches whose results are based on data received in real-time),the user can select the size of a preceding time window to search forreal-time events. Search screen 800 also initially displays a “datasummary” dialog as is illustrated in FIG. 8B that enables the user toselect different sources for the events, such as by selecting specifichosts and log files.

After the search is executed, the search screen 800 in FIG. 8A candisplay the results through search results tabs 804, wherein searchresults tabs 804 includes: an “events tab” that displays variousinformation about events returned by the search; a “statistics tab” thatdisplays statistics about the search results; and a “visualization tab”that displays various visualizations of the search results. The eventstab illustrated in FIG. 8A displays a timeline 805 that graphicallyillustrates the number of events that occurred in one-hour intervalsover the selected time range. The events tab also displays an eventslist 808 that enables a user to view the machine data in each of thereturned events.

The events tab additionally displays a sidebar that is an interactivefield picker 806. The interactive field picker 806 may be displayed to auser in response to the search being executed and allows the user tofurther analyze the search results based on the fields in the events ofthe search results. The interactive field picker 806 includes fieldnames that reference fields present in the events in the search results.The interactive field picker 806 may display any Selected Fields that auser has pre-selected for display (e.g., host, source, sourcetype) andmay also display any Interesting Fields that the data intake and querysystem 108 determines may be interesting to the user based onpre-specified criteria (e.g., action, bytes, categoryid, clientip,date_hour, date_mday, date_minute, etc.). The interactive field picker806 also provides an option to display field names for all the fieldspresent in the events of the search results using the All Fieldscontrol.

Each field name in the interactive field picker 806 has a value typeidentifier to the left of the field name, such as value type identifier.A value type identifier identifies the type of value for the respectivefield, such as an “a” for fields that include literal values or a “#”for fields that include numerical values.

Each field name in the interactive field picker 806 also has a uniquevalue count to the right of the field name, such as unique value count.The unique value count indicates the number of unique values for therespective field in the events of the search results.

Each field name is selectable to view the events in the search resultsthat have the field referenced by that field name. For example, a usercan select the “host” field name, and the events shown in the eventslist 808 will be updated with events in the search results that have thefield that is reference by the field name “host.”

2.12. Data Models

A data model is a hierarchically structured search-time mapping ofsemantic knowledge about one or more datasets. It encodes the domainknowledge used to build a variety of specialized searches of thosedatasets. Those searches, in turn, can be used to generate reports.

A data model is composed of one or more “objects” (or “data modelobjects”) that define or otherwise correspond to a specific set of data.An object is defined by constraints and attributes. An object'sconstraints are search criteria that define the set of events to beoperated on by running a search having that search criteria at the timethe data model is selected. An object's attributes are the set of fieldsto be exposed for operating on that set of events generated by thesearch criteria.

Objects in data models can be arranged hierarchically in parent/childrelationships. Each child object represents a subset of the datasetcovered by its parent object. The top-level objects in data models arecollectively referred to as “root objects.”

Child objects have inheritance. Child objects inherit constraints andattributes from their parent objects and may have additional constraintsand attributes of their own. Child objects provide a way of filteringevents from parent objects. Because a child object may provide anadditional constraint in addition to the constraints it has inheritedfrom its parent object, the dataset it represents may be a subset of thedataset that its parent represents. For example, a first data modelobject may define a broad set of data pertaining to e-mail activitygenerally, and another data model object may define specific datasetswithin the broad dataset, such as a subset of the e-mail data pertainingspecifically to e-mails sent. For example, a user can simply select an“e-mail activity” data model object to access a dataset relating toe-mails generally (e.g., sent or received), or select an “e-mails sent”data model object (or data sub-model object) to access a datasetrelating to e-mails sent.

Because a data model object is defined by its constraints (e.g., a setof search criteria) and attributes (e.g., a set of fields), a data modelobject can be used to quickly search data to identify a set of eventsand to identify a set of fields to be associated with the set of events.For example, an “e-mails sent” data model object may specify a searchfor events relating to e-mails that have been sent and specify a set offields that are associated with the events. Thus, a user can retrieveand use the “e-mails sent” data model object to quickly search sourcedata for events relating to sent e-mails, and may be provided with alisting of the set of fields relevant to the events in a UI screen.

Examples of data models can include electronic mail, authentication,databases, intrusion detection, malware, application state, alerts,compute inventory, network sessions, network traffic, performance,audits, updates, vulnerabilities, etc. Data models and their objects canbe designed by knowledge managers in an organization, and they canenable downstream users to quickly focus on a specific set of data. Auser iteratively applies a model development tool (not shown in FIG. 8A)to prepare a query that defines a subset of events and assigns an objectname to that subset. A child subset is created by further limiting aquery that generated a parent subset.

Data definitions in associated schemas can be taken from the commoninformation model (CIM) or can be devised for a particular schema andoptionally added to the CIM. Child objects inherit fields from parentsand can include fields that are not present in parents. A modeldeveloper can select fewer extraction rules than are available for thesources returned by the query that defines events belonging to a model.Selecting a limited set of extraction rules can be a tool forsimplifying and focusing the data model, while allowing a userflexibility to explore the data subset. Development of a data model isfurther explained in U.S. Pat. Nos. 8,788,525 and 8,788,526, bothentitled “DATA MODEL FOR MACHINE DATA FOR SEMANTIC SEARCH”, both issuedon 22 Jul. 2014, U.S. Pat. No. 8,983,994, entitled “GENERATION OF A DATAMODEL FOR SEARCHING MACHINE DATA”, issued on 17 Mar. 2015, U.S. Pat. No.9,128,980, entitled “GENERATION OF A DATA MODEL APPLIED TO QUERIES”,issued on 8 Sep. 2015, and U.S. Pat. No. 9,589,012, entitled “GENERATIONOF A DATA MODEL APPLIED TO OBJECT QUERIES”, issued on 7 Mar. 2017, eachof which is hereby incorporated by reference in its entirety for allpurposes.

A data model can also include reports. One or more report formats can beassociated with a particular data model and be made available to runagainst the data model. A user can use child objects to design reportswith object datasets that already have extraneous data pre-filtered out.In some embodiments, the data intake and query system 108 provides theuser with the ability to produce reports (e.g., a table, chart,visualization, etc.) without having to enter SPL, SQL, or other querylanguage terms into a search screen. Data models are used as the basisfor the search feature.

Data models may be selected in a report generation interface. The reportgenerator supports drag-and-drop organization of fields to be summarizedin a report. When a model is selected, the fields with availableextraction rules are made available for use in the report. The user mayrefine and/or filter search results to produce more precise reports. Theuser may select some fields for organizing the report and select otherfields for providing detail according to the report organization. Forexample, “region” and “salesperson” are fields used for organizing thereport and sales data can be summarized (subtotaled and totaled) withinthis organization. The report generator allows the user to specify oneor more fields within events and apply statistical analysis on valuesextracted from the specified one or more fields. The report generatormay aggregate search results across sets of events and generatestatistics based on aggregated search results. Building reports usingthe report generation interface is further explained in U.S. patentapplication Ser. No. 14/503,335, entitled “GENERATING REPORTS FROMUNSTRUCTURED DATA”, filed on 30 Sep. 2014, and which is herebyincorporated by reference in its entirety for all purposes. Datavisualizations also can be generated in a variety of formats, byreference to the data model. Reports, data visualizations, and datamodel objects can be saved and associated with the data model for futureuse. The data model object may be used to perform searches of otherdata.

FIGS. 9-15 are interface diagrams of example report generation UIs, inaccordance with example embodiments. The report generation process maybe driven by a predefined data model object, such as a data model objectdefined and/or saved via a reporting application or a data model objectobtained from another source. A user can load a saved data model objectusing a report editor. For example, the initial search query and fieldsused to drive the report editor may be obtained from a data modelobject. The data model object that is used to drive a report generationprocess may define a search and a set of fields. Upon loading of thedata model object, the report generation process may enable a user touse the fields (e.g., the fields defined by the data model object) todefine criteria for a report (e.g., filters, split rows/columns,aggregates, etc.) and the search may be used to identify events (e.g.,to identify events responsive to the search) used to generate thereport. That is, for example, if a data model object is selected todrive a report editor, the GUI of the report editor may enable a user todefine reporting criteria for the report using the fields associatedwith the selected data model object, and the events used to generate thereport may be constrained to the events that match, or otherwisesatisfy, the search constraints of the selected data model object.

The selection of a data model object for use in driving a reportgeneration may be facilitated by a data model object selectioninterface. FIG. 9 illustrates an example interactive data modelselection GUI 900 of a report editor that displays a listing ofavailable data models 901. The user may select one of the data models902.

FIG. 10 illustrates an example data model object selection GUI 1000 thatdisplays available data objects 1001 for the selected data object model902. The user may select one of the displayed data model objects 1002for use in driving the report generation process.

2.13. Acceleration Technique

The above-described system provides significant flexibility by enablinga user to analyze massive quantities of minimally-processed data “on thefly” at search time using a late-binding schema, instead of storingpre-specified portions of the data in a database at ingestion time. Thisflexibility enables a user to see valuable insights, correlate data, andperform subsequent queries to examine interesting aspects of the datathat may not have been apparent at ingestion time.

However, performing extraction and analysis operations at search timecan involve a large amount of data and require a large number ofcomputational operations, which can cause delays in processing thequeries. Advantageously, the data intake and query system 108 alsoemploys a number of unique acceleration techniques that have beendeveloped to speed up analysis operations performed at search time.These techniques include: (1) performing search operations in parallelacross multiple indexers; (2) using a keyword index; (3) using a highperformance analytics store; and (4) accelerating the process ofgenerating reports. These novel techniques are described in more detailbelow.

2.13.1. Aggregation Technique

To facilitate faster query processing, a query can be structured suchthat multiple indexers 206 perform the query in parallel, whileaggregation of search results from the multiple indexers 206 isperformed locally at the search head 210. For example, FIG. 11 is anexample search query received from a client and executed by searchpeers, in accordance with example embodiments. FIG. 11 illustrates how asearch query 1102 received from a client at a search head 210 can splitinto two phases, including: (1) subtasks 1104 (e.g., data retrieval orsimple filtering) that may be performed in parallel by indexers 206 forexecution, and (2) a search results aggregation operation 1106 to beexecuted by the search head 210 when the results are ultimatelycollected from the indexers 206.

During operation, upon receiving search query 1102, a search head 210determines that a portion of the operations involved with the searchquery 1102 may be performed locally by the search head 210. The searchhead 210 modifies search query 1102 by substituting “stats” (createaggregate statistics over results sets received from the indexers at thesearch head) with “prestats” (create statistics by the indexer fromlocal results set) to produce search query 1102, and then distributessearch query 1102 to distributed indexers, which are also referred to as“search peers” or “peer indexers.” Note that search queries maygenerally specify search criteria or operations to be performed onevents that meet the search criteria. Search queries may also specifyfield names, as well as search criteria for the values in the fields oroperations to be performed on the values in the fields. Moreover, thesearch head 210 may distribute the full search query 1102 to the searchpeers as illustrated in FIG. 6A, or may alternatively distribute amodified version (e.g., a more restricted version) of the search query1102 to the search peers. In this example, the indexers 206 areresponsible for producing the results and sending them to the searchhead 210. After the indexers 206 return the results to the search head210, the search head 210 aggregates the received results at the searchresults aggregation operation 1106 to form a single search result set.By executing the query in this manner, the system effectivelydistributes the computational operations across the indexers 206 whileminimizing data transfers.

2.13.2. Keyword Index

As described above with reference to the flow charts in FIG. 5A and FIG.6A, the data intake and query system 108 can construct and maintain oneor more keyword indices to quickly identify events containing specifickeywords. This technique can greatly speed up the processing of queriesinvolving specific keywords. As mentioned above, to build a keywordindex, an indexer 206 first identifies a set of keywords. Then, theindexer 206 includes the identified keywords in an index, whichassociates each stored keyword with references to events containing thatkeyword, or to locations within events where that keyword is located.When an indexer 206 subsequently receives a keyword-based query, theindexer 206 can access the keyword index to quickly identify eventscontaining the keyword.

2.13.3. High Performance Analytics Store

To speed up certain types of queries, some embodiments of the dataintake and query system 108 create a high performance analytics store,which is referred to as a “summarization table,” that contains entriesfor specific field-value pairs. Each of these entries keeps track ofinstances of a specific value in a specific field in the events andincludes references to events containing the specific value in thespecific field. For example, an example entry in a summarization tablecan keep track of occurrences of the value “94107” in a “ZIP code” fieldof a set of events and the entry includes references to all of theevents that contain the value “94107” in the ZIP code field. Thisoptimization technique enables the data intake and query system 108 toquickly process queries that seek to determine how many events have aparticular value for a particular field. To this end, the data intakeand query system 108 can examine the entry in the summarization table tocount instances of the specific value in the field without having to gothrough the individual events or perform data extractions at searchtime. Also, if the data intake and query system 108 needs to process allevents that have a specific field-value combination, the data intake andquery system 108 can use the references in the summarization table entryto directly access the events to extract further information withouthaving to search all of the events to find the specific field-valuecombination at search time.

In some embodiments, the data intake and query system 108 maintains aseparate summarization table for each of the above-describedtime-specific buckets that stores events for a specific time range. Abucket-specific summarization table includes entries for specificfield-value combinations that occur in events in the specific bucket.Alternatively, the data intake and query system 108 can maintain aseparate summarization table for each indexer 206. The indexer-specificsummarization table includes entries for the events in a data store 208that are managed by the specific indexer 206. Indexer-specificsummarization tables may also be bucket-specific.

The summarization table can be populated by running a periodic querythat scans a set of events to find instances of a specific field-valuecombination, or alternatively instances of all field-value combinationsfor a specific field. A periodic query can be initiated by a user or canbe scheduled to occur automatically at specific time intervals. Aperiodic query can also be automatically launched in response to a querythat asks for a specific field-value combination.

In some cases, when the summarization tables may not cover all of theevents that are relevant to a query, the data intake and query system108 can use the summarization tables to obtain partial results for theevents that are covered by summarization tables but may also have tosearch through other events that are not covered by the summarizationtables to produce additional results. These additional results can thenbe combined with the partial results to produce a final set of resultsfor the query. The summarization table and associated techniques aredescribed in more detail in U.S. Pat. No. 8,682,925, entitled“DISTRIBUTED HIGH PERFORMANCE ANALYTICS STORE”, issued on 25 Mar. 2014,U.S. Pat. No. 9,128,985, entitled “SUPPLEMENTING A HIGH PERFORMANCEANALYTICS STORE WITH EVALUATION OF INDIVIDUAL EVENTS TO RESPOND TO ANEVENT QUERY”, issued on 8 Sep. 2015, and U.S. patent application Ser.No. 14/815,973, entitled “GENERATING AND STORING SUMMARIZATION TABLESFOR SETS OF SEARCHABLE EVENTS”, filed on 1 Aug. 2015, each of which ishereby incorporated by reference in its entirety for all purposes.

To speed up certain types of queries, e.g., frequently encounteredqueries or computationally intensive queries, some embodiments of thedata intake and query system 108 create a high performance analyticsstore, which is referred to as a “summarization table,” (also referredto as a “lexicon” or “inverted index”) that contains entries forspecific field-value pairs. Each of these entries keeps track ofinstances of a specific value in a specific field in the event data andincludes references to events containing the specific value in thespecific field. For example, an example entry in an inverted index 507Bcan keep track of occurrences of the value “94107” in a “ZIP code” fieldof a set of events and the entry includes references to all of theevents that contain the value “94107” in the ZIP code field. Creatingthe inverted index data structure avoids needing to incur thecomputational overhead each time a statistical query needs to be run ona frequently encountered field-value pair. In order to expedite queries,in most embodiments, the search engine will employ the inverted index507B separate from the raw record data store to generate responses tothe received queries.

Note that the term “summarization table” or “inverted index” as usedherein is a data structure that may be generated by an indexer 206 thatincludes at least field names and field values that have been extractedand/or indexed from event records. An inverted index 507B may alsoinclude reference values that point to the location(s) in the fieldsearchable data store where the event records that include the field maybe found. Also, an inverted index 507B may be stored using well-knowncompression techniques to reduce its storage size.

Further, note that the term “reference value” (also referred to as a“posting value”) as used herein is a value that references the locationof a source record in the field searchable data store. In someembodiments, the reference value may include additional informationabout each record, such as timestamps, record size, meta-data, or thelike. Each reference value may be a unique identifier which may be usedto access the event data directly in the field searchable data store. Insome embodiments, the reference values may be ordered based on eachevent record's timestamp. For example, if numbers are used asidentifiers, they may be sorted so event records having a latertimestamp always have a lower valued identifier than event records withan earlier timestamp, or vice-versa. Reference values are often includedin inverted indexes for retrieving and/or identifying event records.

In one or more embodiments, an inverted index 507B is generated inresponse to a user-initiated collection query. The term “collectionquery” as used herein refers to queries that include commands thatgenerate summarization information and inverted indexes (orsummarization tables) from event records stored in the field searchabledata store.

Note that a collection query is a special type of query that can beuser-generated and is used to create an inverted index 507B. Acollection query is not the same as a query that is used to call up orinvoke a pre-existing inverted index. In one or more embodiments, aquery can comprise an initial step that calls up a pre-generatedinverted index on which further filtering and processing can beperformed. For example, referring back to FIG. 6B, a set of events canbe generated at block 640 by either using a “collection” query to createa new inverted index or by calling up a pre-generated inverted index. Aquery with several pipelined steps will start with a pre-generated indexto accelerate the query.

FIG. 7C illustrates the manner in which an inverted index is created andused in accordance with the disclosed embodiments. As shown in FIG. 7C,an inverted index 722 can be created in response to a user-initiatedcollection query using the event data 723 stored in the raw record datastore. For example, a non-limiting example of a collection query mayinclude “collect clientip=127.0.0.1” which may result in an invertedindex 722 being generated from the event data 723 as shown in FIG. 7C.Each entry in inverted index 722 includes an event reference value thatreferences the location of a source record in the field searchable datastore. The reference value may be used to access the original eventrecord directly from the field searchable data store.

In one or more embodiments, if one or more of the queries is acollection query, the responsive indexers may generate summarizationinformation based on the fields of the event records located in thefield searchable data store. In at least one of the various embodiments,one or more of the fields used in the summarization information may belisted in the collection query and/or they may be determined based onterms included in the collection query. For example, a collection querymay include an explicit list of fields to summarize. Or, in at least oneof the various embodiments, a collection query may include terms orexpressions that explicitly define the fields, e.g., using regex rules.In FIG. 7C, prior to running the collection query that generates theinverted index 722, the field name “clientip” may need to be defined ina configuration file 716 by specifying the “access_combined” source typeand a regular expression rule to parse out the client IP address.Alternatively, the collection query may contain an explicit definitionfor the field name “clientip” which may obviate the need to referencethe configuration file 716 at search time.

In one or more embodiments, collection queries may be saved andscheduled to run periodically. These scheduled collection queries mayperiodically update the summarization information corresponding to thequery. For example, if the collection query that generates invertedindex 722 is scheduled to run periodically, one or more indexers 206would periodically search through the relevant buckets to updateinverted index 722 with event data 723 for any new events with the“clientip” value of “127.0.0.1.”

In some embodiments, the inverted indexes that include fields, values,and reference value (e.g., inverted index 722) for event records may beincluded in the summarization information provided to the user. In otherembodiments, a user may not be interested in specific fields and valuescontained in the inverted index 722 but may need to perform astatistical query on the data in the inverted index 722. For example,referencing the example of FIG. 7C rather than viewing the fields withinsummarization table, a user may want to generate a count of all clientrequests from IP address “127.0.0.1.” In this case, the search enginewould simply return a result of “4” rather than including details aboutthe inverted index 722 in the information provided to the user.

The pipelined search language, e.g., SPL of the SPLUNK® ENTERPRISEsystem can be used to pipe the contents of an inverted index to astatistical query using the “stats” command for example. A “stats” queryrefers to queries that generate result sets that may produce aggregateand statistical results from event records, e.g., average, mean, max,min, rms, etc. Where sufficient information is available in an invertedindex 722, a “stats” query may generate their result sets rapidly fromthe summarization information available in the inverted index 722 ratherthan directly scanning event records. For example, the contents ofinverted index 722 can be pipelined to a stats query, e.g., a “count”function that counts the number of entries in the inverted index 722 andreturns a value of “4.” In this way, inverted indexes may enable variousstats queries to be performed absent scanning or search the eventrecords. Accordingly, this optimization technique enables the system toquickly process queries that seek to determine how many events have aparticular value for a particular field. To this end, the data intakeand query system 108 can examine the entry in the inverted index 722 tocount instances of the specific value in the field without having to gothrough the individual events or perform data extractions at searchtime.

In some embodiments, the data intake and query system 108 maintains aseparate inverted index for each of the above-described time-specificbuckets that stores events for a specific time range. A bucket-specificinverted index includes entries for specific field-value combinationsthat occur in events in the specific bucket. Alternatively, the dataintake and query system 108 can maintain a separate inverted index foreach indexer 206. The indexer-specific inverted index includes entriesfor the events in a data store 208 that are managed by the specificindexer. Indexer-specific inverted indexes may also be bucket-specific.In at least one or more embodiments, if one or more of the queries is astats query, each indexer 206 may generate a partial result set frompreviously generated summarization information. The partial result setsmay be returned to the search head 210 that received the query andcombined into a single result set for the query

As mentioned above, the inverted index 722 can be populated by running aperiodic query that scans a set of events to find instances of aspecific field-value combination, or alternatively instances of allfield-value combinations for a specific field. A periodic query can beinitiated by a user or can be scheduled to occur automatically atspecific time intervals. A periodic query can also be automaticallylaunched in response to a query that asks for a specific field-valuecombination. In some embodiments, if summarization information is absentfrom an indexer 206 that includes responsive event records, furtheractions may be taken, such as, the summarization information may begenerated on the fly, warnings may be provided the user, the collectionquery operation may be halted, the absence of summarization informationmay be ignored, or the like, or combination thereof.

In one or more embodiments, an inverted index 722 may be set up toupdate continually. For example, the query may ask for the invertedindex 722 to update its result periodically, e.g., every hour. In suchinstances, the inverted index 722 may be a dynamic data structure thatis regularly updated to include information regarding incoming events.

In some cases, e.g., where a query is executed before an inverted indexupdates, when the inverted index 722 may not cover all of the eventsthat are relevant to a query, the data intake and query system 108 canuse the inverted index 722 to obtain partial results for the events thatare covered by inverted index 722, but may also have to search throughother events that are not covered by the inverted index 722 to produceadditional results on the fly. In other words, an indexer 206 would needto search through event data 723 on the data store 208 to supplement thepartial results. These additional results can then be combined with thepartial results to produce a final set of results for the query. Notethat in typical instances where an inverted index is not completely upto date, the number of events that an indexer 206 would need to searchthrough to supplement the results from the inverted index 722 would berelatively small. In other words, the search to get the most recentresults can be quick and efficient because only a small number of eventrecords will be searched through to supplement the information from theinverted index 722. The inverted index and associated techniques aredescribed in more detail in U.S. Pat. No. 8,682,925, entitled“DISTRIBUTED HIGH PERFORMANCE ANALYTICS STORE”, issued on 25 Mar. 2014,U.S. Pat. No. 9,128,985, entitled “SUPPLEMENTING A HIGH PERFORMANCEANALYTICS STORE WITH EVALUATION OF INDIVIDUAL EVENTS TO RESPOND TO ANEVENT QUERY”, filed on 31 Jan. 2014, and U.S. patent application Ser.No. 14/815,973, entitled “STORAGE MEDIUM AND CONTROL DEVICE”, filed on21 Feb. 2014, each of which is hereby incorporated by reference in itsentirety.

2.13.3.1 Extracting Event Data Using Posting

In one or more embodiments, if the system needs to process all eventsthat have a specific field-value combination, the system can use thereferences in the inverted index 722 entry to directly access the eventsto extract further information without having to search all of theevents to find the specific field-value combination at search time. Inother words, the data intake and query system 108 can use the referencevalues to locate the associated event data in the field searchable datastore and extract further information from those events, e.g., extractfurther field values from the events for purposes of filtering orprocessing or both.

The information extracted from the event data 723 using the referencevalues can be directed for further filtering or processing in a queryusing the pipeline search language. The pipelined search language will,in one embodiment, include syntax that can direct the initial filteringstep in a query to an inverted index 722. In one embodiment, a userwould include syntax in the query that explicitly directs the initialsearching or filtering step to the inverted index 722.

Referencing the example in FIG. 7C, if the user determines that sheneeds the user id fields associated with the client requests from IPaddress “127.0.0.1,” instead of incurring the computational overhead ofperforming a brand new search or re-generating the inverted index 722with an additional field, the user can generate a query that explicitlydirects or pipes the contents of the already generated inverted index722 to another filtering step requesting the user ids for the entries ininverted index 722 where the server response time is greater than“0.0900” microseconds. The search engine would use the reference valuesstored in inverted index 722 to retrieve the event data 723 from thefield searchable data store, filter the results based on the “responsetime” field values and, further, extract the user id field from theresulting event data 723 to return to the user. In the present instance,the user ids “frank” and “carlos” would be returned to the user from thegenerated results table.

In one embodiment, the same methodology can be used to pipe the contentsof the inverted index 722 to a processing step. In other words, the useris able to use the inverted index 722 to efficiently and quickly performaggregate functions on field values that were not part of the initiallygenerated inverted index 722. For example, a user may want to determinean average object size (size of the requested gif) requested by clientsfrom IP address “127.0.0.1.” In this case, the search engine would againuse the reference values stored in inverted index 722 to retrieve theevent data from the field searchable data store and, further, extractthe object size field values from the associated events 731, 732, 733and 734. Once, the corresponding object sizes have been extracted (i.e.2326, 2900, 2920, and 5000), the average can be computed and returned tothe user.

In one embodiment, instead of explicitly invoking the inverted index 722in a user-generated query, e.g., by the use of special commands orsyntax, the SPLUNK® ENTERPRISE system can be configured to automaticallydetermine if any prior-generated inverted index can be used to expeditea user query. For example, the user's query may request the averageobject size (size of the requested gif) requested by clients from IPaddress “127.0.0.1.” without any reference to or use of inverted index722. The search engine, in this case, would automatically determine thatan inverted index 722 already exists in the data intake and query system108 that could expedite this query. In one embodiment, prior to runningany search comprising a field-value pair, for example, a search enginemay search though all the existing inverted indexes to determine if apre-generated inverted index could be used to expedite the searchcomprising the field-value pair. Accordingly, the search engine wouldautomatically use the pre-generated inverted index, e.g., inverted index722 to generate the results without any user-involvement that directsthe use of the index.

Using the reference values in an inverted index 722 to be able todirectly access the event data in the field searchable data store andextract further information from the associated event data for furtherfiltering and processing is highly advantageous because it avoidsincurring the computation overhead of regenerating the inverted index722 with additional fields or performing a new search.

The data intake and query system 108 includes one or more forwardersthat receive raw machine data from a variety of input data sources, andone or more indexers 206 that process and store the data in one or moredata stores 208. By distributing events among the indexers 206 and datastores 208, the indexers 206 can analyze events for a query in parallel.In one or more embodiments, a multiple indexer implementation of thesearch system would maintain a separate and respective inverted indexfor each of the above-described time-specific buckets that stores eventsfor a specific time range. A bucket-specific inverted index includesentries for specific field-value combinations that occur in events inthe specific bucket. As explained above, a search head 210 would be ableto correlate and synthesize data from across the various buckets andindexers 206.

This feature advantageously expedites searches because instead ofperforming a computationally intensive search in a centrally locatedinverted index that catalogues all the relevant events, an indexer 206is able to directly search an inverted index 722 stored in a bucketassociated with the time-range specified in the query. This allows thesearch to be performed in parallel across the various indexers. Further,if the query requests further filtering or processing to be conducted onthe event data referenced by the locally stored bucket-specific invertedindex, the indexer 206 is able to simply access the event records storedin the associated bucket for further filtering and processing instead ofneeding to access a central repository of event records, which woulddramatically add to the computational overhead.

In one embodiment, there may be multiple buckets associated with thetime-range specified in a query. If the query is directed to an invertedindex 722, or if the search engine automatically determines that usingan inverted index 722 would expedite the processing of the query, theindexers 206 will search through each of the inverted indexes 722associated with the buckets for the specified time-range. This featureallows the High Performance Analytics Store to be scaled easily.

In certain instances, where a query is executed before a bucket-specificinverted index updates, when the bucket-specific inverted index may notcover all of the events that are relevant to a query, the data intakeand query system 108 can use the bucket-specific inverted index toobtain partial results for the events that are covered bybucket-specific inverted index, but may also have to search through theevent data in the bucket associated with the bucket-specific invertedindex to produce additional results on the fly. In other words, anindexer 206 would need to search through event data stored in the bucket(that was not yet processed by the indexer for the correspondinginverted index) to supplement the partial results from thebucket-specific inverted index.

FIG. 7D presents a flowchart illustrating how an inverted index 722 in apipelined search query can be used to determine a set of event data thatcan be further limited by filtering or processing in accordance with thedisclosed embodiments.

At block 742, a query is received by a data intake and query system 108.In some embodiments, the query can be received as a user generated queryentered into a search bar of a graphical user search interface. Thesearch interface also includes a time range control element that enablesspecification of a time range for the query.

At block 744, an inverted index 722 is retrieved. Note, that theinverted index 722 can be retrieved in response to an explicit usersearch command inputted as part of the user generated query.Alternatively, the search engine can be configured to automatically usean inverted index 722 if it determines that using the inverted index 722would expedite the servicing of the user generated query. Each of theentries in an inverted index 722 keeps track of instances of a specificvalue in a specific field in the event data and includes references toevents containing the specific value in the specific field. In order toexpedite queries, in most embodiments, the search engine will employ theinverted index separate from the raw record data store to generateresponses to the received queries.

At block 746, the query engine determines if the query contains furtherfiltering and processing steps. If the query contains no furthercommands, then, in one embodiment, summarization information can beprovided to the user at block 754.

If, however, the query does contain further filtering and processingcommands, then at block 748, the query engine determines if therequisite information is available in the inverted index. Specifically,the query engine determines whether commands relate to further filteringor processing of the data extracted as part of the inverted index 722 orwhether the commands are directed to using the inverted index 722 as aninitial filtering step to further filter and process event datareferenced by the entries in the inverted index 722. If the query can becompleted using data already in the generated inverted index 722, thenthe further filtering or processing steps, e.g., a “count” number ofrecords function, “average” number of records per hour etc. areperformed and the results are provided to the user at block 750.

If, however, the query references fields that are not extracted in theinverted index, then the indexers 206 will access event data pointed toby the reference values in the inverted index 722 to retrieve anyfurther information required at block 756. Subsequently, any furtherfiltering or processing steps are performed on the fields extracteddirectly from the event data and the results are provided to the user atstep 758.

2.13.4. Accelerating Report Generation

In some embodiments, a data server system such as the data intake andquery system 108 can accelerate the process of periodically generatingupdated reports based on query results. To accelerate this process, asummarization engine automatically examines the query to determinewhether generation of updated reports can be accelerated by creatingintermediate summaries. If reports can be accelerated, the summarizationengine periodically generates a summary covering data obtained during alatest non-overlapping time period. For example, where the query seeksevents meeting a specified criterion, a summary for the time periodincludes only events within the time period that meet the specifiedcriteria. Similarly, if the query seeks statistics calculated from theevents, such as the number of events that match the specified criteria,then the summary for the time period includes the number of events inthe period that match the specified criteria.

In addition to the creation of the summaries, the summarization engineschedules the periodic updating of the report associated with the query.During each scheduled report update, the query engine determines whetherintermediate summaries have been generated covering portions of the timeperiod covered by the report update. If so, then the report is generatedbased on the information contained in the summaries. Also, if additionalevent data has been received and has not yet been summarized, and isrequired to generate the complete report, the query can be run on theseadditional events. Then, the results returned by this query on theadditional events, along with the partial results obtained from theintermediate summaries, can be combined to generate the updated report.This process is repeated each time the report is updated. Alternatively,if the data intake and query system 108 stores events in bucketscovering specific time ranges, then the summaries can be generated on abucket-by-bucket basis. Note that producing intermediate summaries cansave the work involved in re-running the query for previous timeperiods, so advantageously only the newer events need to be processedwhile generating an updated report. These report acceleration techniquesare described in more detail in U.S. Pat. No. 8,589,403, entitled“COMPRESSED JOURNALING IN EVENT TRACKING FILES FOR METADATA RECOVERY ANDREPLICATION”, issued on 19 Nov. 2013, U.S. Pat. No. 8,412,696, entitled“REAL TIME SEARCHING AND REPORTING”, issued on 2 Apr. 2011, and U.S.Pat. Nos. 8,589,375 and 8,589,432, both also entitled “REAL TIMESEARCHING AND REPORTING”, both issued on 19 Nov. 2013, each of which ishereby incorporated by reference in its entirety for all purposes.

2.14. Security Features

The data intake and query system 108 provides various schemas,dashboards, and visualizations that simplify developers' tasks to createapplications with additional capabilities. One such application is anenterprise security application, such as SPLUNK® ENTERPRISE SECURITY,which performs monitoring and alerting operations and includes analyticsto facilitate identifying both known and unknown security threats basedon large volumes of data stored by the data intake and query system 108.The enterprise security application provides the security practitionerwith visibility into security-relevant threats found in the enterpriseinfrastructure by capturing, monitoring, and reporting on data fromenterprise security devices, systems, and applications. Through the useof the data intake and query system 108 searching and reportingcapabilities, the enterprise security application provides a top-downand bottom-up view of an organization's security posture.

The enterprise security application leverages the data intake and querysystem 108 search-time normalization techniques, saved searches, andcorrelation searches to provide visibility into security-relevantthreats and activity and generate notable events for tracking. Theenterprise security application enables the security practitioner toinvestigate and explore the data to find new or unknown threats that donot follow signature-based patterns.

Conventional Security Information and Event Management (STEM) systemslack the infrastructure to effectively store and analyze large volumesof security-related data. Traditional STEM systems typically use fixedschemas to extract data from pre-defined security-related fields at dataingestion time and store the extracted data in a relational database.This traditional data extraction process (and associated reduction indata size) that occurs at data ingestion time inevitably hampers futureincident investigations that may need original data to determine theroot cause of a security issue, or to detect the onset of an impendingsecurity threat.

In contrast, the enterprise security application system stores largevolumes of minimally-processed security-related data at ingestion timefor later retrieval and analysis at search time when a live securitythreat is being investigated. To facilitate this data retrieval process,the enterprise security application system provides pre-specifiedschemas for extracting relevant values from the different types ofsecurity-related events and enables a user to define such schemas.

The enterprise security application system can process many types ofsecurity-related information. In general, this security-relatedinformation can include any information that can be used to identifysecurity threats. For example, the security-related information caninclude network-related information, such as IP addresses, domain names,asset identifiers, network traffic volume, uniform resource locatorstrings, and source addresses. The process of detecting security threatsfor network-related information is further described in U.S. Pat. No.8,826,434, entitled “SECURITY THREAT DETECTION BASED ON INDICATIONS INBIG DATA OF ACCESS TO NEWLY REGISTERED DOMAINS”, issued on 2 Sep. 2014,U.S. Pat. No. 9,215,240, entitled “INVESTIGATIVE AND DYNAMIC DETECTIONOF POTENTIAL SECURITY-THREAT INDICATORS FROM EVENTS IN BIG DATA”, issuedon 15 Dec. 2015, U.S. Pat. No. 9,173,801, entitled “GRAPHIC DISPLAY OFSECURITY THREATS BASED ON INDICATIONS OF ACCESS TO NEWLY REGISTEREDDOMAINS”, issued on 3 Nov. 2015, U.S. Pat. No. 9,248,068, entitled“SECURITY THREAT DETECTION OF NEWLY REGISTERED DOMAINS”, issued on 2Feb. 2016, U.S. Pat. No. 9,426,172, entitled “SECURITY THREAT DETECTIONUSING DOMAIN NAME ACCESSES”, issued on 23 Aug. 2016, and U.S. Pat. No.9,432,396, entitled “SECURITY THREAT DETECTION USING DOMAIN NAMEREGISTRATIONS”, issued on 30 Aug. 2016, each of which is herebyincorporated by reference in its entirety for all purposes.Security-related information can also include malware infection data andsystem configuration information, as well as access control information,such as login/logout information and access failure notifications. Thesecurity-related information can originate from various sources within adata center, such as hosts, virtual machines, storage devices andsensors. The security-related information can also originate fromvarious sources in a network, such as routers, switches, email servers,proxy servers, gateways, firewalls and intrusion-detection systems.

During operation, the enterprise security application system facilitatesdetecting “notable events” that are likely to indicate a securitythreat. A notable event represents one or more anomalous incidents, theoccurrence of which can be identified based on one or more events (e.g.,time stamped portions of raw machine data) fulfilling pre-specifiedand/or dynamically-determined (e.g., based on machine-learning) criteriadefined for that notable event. Examples of notable events include therepeated occurrence of an abnormal spike in network usage over a periodof time, a single occurrence of unauthorized access to target system, ahost communicating with a server on a known threat list, and the like.These notable events can be detected in a number of ways, such as: (1) auser can notice a correlation in events and can manually identify that acorresponding group of one or more events amounts to a notable event; or(2) a user can define a “correlation search” specifying criteria for anotable event, and every time one or more events satisfy the criteria,the application can indicate that the one or more events correspond to anotable event; and the like. A user can alternatively select apre-defined correlation search provided by the application. Note thatcorrelation searches can be run continuously or at regular intervals(e.g., every hour) to search for notable events. Upon detection, notableevents can be stored in a dedicated “notable events index,” which can besubsequently accessed to generate various visualizations containingsecurity-related information. Also, alerts can be generated to notifysystem operators when important notable events are discovered.

The enterprise security application system provides variousvisualizations to aid in discovering security threats, such as a “keyindicators view” that enables a user to view security metrics, such ascounts of different types of notable events. For example, FIG. 12Aillustrates an example key indicators view 1200 that comprises adashboard, which can display a value 1201, for various security-relatedmetrics, such as malware infections 1202. It can also display a changein a metric value 1203, which indicates that the number of malwareinfections 1202 increased by 63 during the preceding interval. Keyindicators view 1200 additionally displays a histogram panel 1204 thatdisplays a histogram of notable events organized by urgency values, anda histogram of notable events organized by time intervals. This keyindicators view 1200 is described in further detail in pending U.S.patent application Ser. No. 13/956,338, entitled “KEY INDICATORS VIEW”,filed on 31 Jul. 2013, and which is hereby incorporated by reference inits entirety for all purposes.

These visualizations can also include an “incident review dashboard”that enables a user to view and act on “notable events.” These notableevents can include: (1) a single event of high importance, such as anyactivity from a known web attacker; or (2) multiple events thatcollectively warrant review, such as a large number of authenticationfailures on a host followed by a successful authentication. For example,FIG. 12B illustrates an example incident review dashboard 1210 thatincludes a set of incident attribute fields 1211 that, for example,enables a user to specify a time range field 1212 for the displayedevents. It also includes a timeline 1213 that graphically illustratesthe number of incidents that occurred in time intervals over theselected time range. It additionally displays an events list 1214 thatenables a user to view a list of all of the notable events that matchthe criteria in the incident attributes fields 1211. To facilitateidentifying patterns among the notable events, each notable event can beassociated with an urgency value (e.g., low, medium, high, critical),which is indicated in the incident review dashboard 1210. The urgencyvalue for a detected event can be determined based on the severity ofthe event and the priority of the system component associated with theevent.

2.15. Data Center Monitoring

As mentioned above, the data intake and query platform provides variousfeatures that simplify the developer's task to create variousapplications. One such application is a virtual machine monitoringapplication, such as SPLUNK® APP FOR VMWARE® that provides operationalvisibility into granular performance metrics, logs, tasks and events,and topology from hosts, virtual machines and virtual centers. Itempowers administrators with an accurate real-time picture of the healthof the environment, proactively identifying performance and capacitybottlenecks.

Conventional data-center-monitoring systems lack the infrastructure toeffectively store and analyze large volumes of machine-generated data,such as performance information and log data obtained from the datacenter. In conventional data-center-monitoring systems,machine-generated data is typically pre-processed prior to being stored,for example, by extracting pre-specified data items and storing them ina database to facilitate subsequent retrieval and analysis at searchtime. However, the rest of the data is not saved and discarded duringpre-processing.

In contrast, the virtual machine monitoring application stores largevolumes of minimally processed machine data, such as performanceinformation and log data, at ingestion time for later retrieval andanalysis at search time when a live performance issue is beinginvestigated. In addition to data obtained from various log files, thisperformance-related information can include values for performancemetrics obtained through an application programming interface (API)provided as part of the vSphere Hypervisor™ system distributed byVMware, Inc. of Palo Alto, Calif. For example, these performance metricscan include: (1) CPU-related performance metrics; (2) disk-relatedperformance metrics; (3) memory-related performance metrics; (4)network-related performance metrics; (5) energy-usage statistics; (6)data-traffic-related performance metrics; (7) overall systemavailability performance metrics; (8) cluster-related performancemetrics; and (9) virtual machine performance statistics. Suchperformance metrics are described in U.S. patent application Ser. No.14/167,316, entitled “CORRELATION FOR USER-SELECTED TIME RANGES OFVALUES FOR PERFORMANCE METRICS OF COMPONENTS IN ANINFORMATION-TECHNOLOGY ENVIRONMENT WITH LOG DATA FROM THATINFORMATION-TECHNOLOGY ENVIRONMENT”, filed on 29 Jan. 2014, and which ishereby incorporated by reference in its entirety for all purposes.

To facilitate retrieving information of interest from performance dataand log files, the virtual machine monitoring application providespre-specified schemas for extracting relevant values from differenttypes of performance-related events, and also enables a user to definesuch schemas.

The virtual machine monitoring application additionally provides variousvisualizations to facilitate detecting and diagnosing the root cause ofperformance problems. For example, one such visualization is a“proactive monitoring tree” that enables a user to easily view andunderstand relationships among various factors that affect theperformance of a hierarchically structured computing system. Thisproactive monitoring tree enables a user to easily navigate thehierarchy by selectively expanding nodes representing various entities(e.g., virtual centers or computing clusters) to view performanceinformation for lower-level nodes associated with lower-level entities(e.g., virtual machines or host systems). Example node-expansionoperations are illustrated in FIG. 12C, wherein nodes 1233 and 1234 areselectively expanded. Note that nodes 1231-1239 can be displayed usingdifferent patterns or colors to represent different performance states,such as a critical state, a warning state, a normal state or anunknown/offline state. The ease of navigation provided by selectiveexpansion in combination with the associated performance-stateinformation enables a user to quickly diagnose the root cause of aperformance problem. The proactive monitoring tree is described infurther detail in U.S. Pat. No. 9,185,007, entitled “PROACTIVEMONITORING TREE WITH SEVERITY STATE SORTING”, issued on 10 Nov. 2015,and U.S. Pat. No. 9,426,045, also entitled “PROACTIVE MONITORING TREEWITH SEVERITY STATE SORTING”, issued on 23 Aug. 2016, each of which ishereby incorporated by reference in its entirety for all purposes.

The virtual machine monitoring application also provides a UI thatenables a user to select a specific time range and then viewheterogeneous data comprising events, log data, and associatedperformance metrics for the selected time range. For example, the screenillustrated in FIG. 12D displays a listing of recent “tasks and events”and a listing of recent “ESX/I log entries” for a selected time rangeabove a performance-metric graph for “average CPU coreutilization” forthe selected time range. Note that a user is able to operate pull-downmenus 1242 to selectively display different performance metric graphsfor the selected time range. This enables the user to correlate trendsin the performance-metric graph with corresponding event and log data toquickly determine the root cause of a performance problem. This UI isdescribed in more detail in U.S. patent application Ser. No. 14/167,316,entitled “CORRELATION FOR USER-SELECTED TIME RANGES OF VALUES FORPERFORMANCE METRICS OF COMPONENTS IN AN INFORMATION-TECHNOLOGYENVIRONMENT WITH LOG DATA FROM THAT INFORMATION-TECHNOLOGY ENVIRONMENT”,filed on 29 Jan. 2014, and which is hereby incorporated by reference inits entirety for all purposes.

2.16. IT Service Monitoring

As previously mentioned, the data intake and query platform providesvarious schemas, dashboards and visualizations that make it easy fordevelopers to create applications to provide additional capabilities.One such application is an IT monitoring application, such as SPLUNK® ITSERVICE INTELLIGENCE™, which performs monitoring and alertingoperations. The IT monitoring application also includes analytics tohelp an analyst diagnose the root cause of performance problems based onlarge volumes of data stored by the data intake and query system 108 ascorrelated to the various services an IT organization provides (aservice-centric view). This differs significantly from conventional ITmonitoring systems that lack the infrastructure to effectively store andanalyze large volumes of service-related events. Traditional servicemonitoring systems typically use fixed schemas to extract data frompre-defined fields at data ingestion time, wherein the extracted data istypically stored in a relational database. This data extraction processand associated reduction in data content that occurs at data ingestiontime inevitably hampers future investigations, when all of the originaldata may be needed to determine the root cause of or contributingfactors to a service issue.

In contrast, an IT monitoring application system stores large volumes ofminimally-processed service-related data at ingestion time for laterretrieval and analysis at search time, to perform regular monitoring, orto investigate a service issue. To facilitate this data retrievalprocess, the IT monitoring application enables a user to define an IToperations infrastructure from the perspective of the services itprovides. In this service-centric approach, a service such as corporatee-mail may be defined in terms of the entities employed to provide theservice, such as host machines and network devices. Each entity isdefined to include information for identifying all of the events thatpertains to the entity, whether produced by the entity itself or byanother machine, and considering the many various ways the entity may beidentified in machine data (such as by a URL, an IP address, or machinename). The service and entity definitions can organize events around aservice so that all of the events pertaining to that service can beeasily identified. This capability provides a foundation for theimplementation of Key Performance Indicators (KPIs).

One or more KPIs are defined for a service within the IT monitoringapplication. Each KPI measures an aspect of service performance at apoint in time or over a period of time (aspect KPIs). Each KPI isdefined by a search query that derives a KPI value from the machine dataof events associated with the entities that provide the service.Information in the entity definitions may be used to identify theappropriate events at the time a KPI is defined or whenever a KPI valueis being determined. The KPI values derived over time may be stored tobuild a valuable repository of current and historical performanceinformation for the service, and the repository, itself, may be subjectto search query processing. Aggregate KPIs may be defined to provide ameasure of service performance calculated from a set of service aspectKPI values; this aggregate may even be taken across defined timeframesand/or across multiple services. A particular service may have anaggregate KPI derived from substantially all of the aspect KPIs of theservice to indicate an overall health score for the service.

The IT monitoring application facilitates the production of meaningfulaggregate KPIs through a system of KPI thresholds and state values.Different KPI definitions may produce values in different ranges, and sothe same value may mean something very different from one KPI definitionto another. To address this, the IT monitoring application implements atranslation of individual KPI values to a common domain of “state”values. For example, a KPI range of values may be 1-100, or 50-275,while values in the state domain may be ‘critical,’ ‘warning,’ ‘normal,’and ‘informational’. Thresholds associated with a particular KPIdefinition determine ranges of values for that KPI that correspond tothe various state values. In one case, KPI values 95-100 may be set tocorrespond to ‘critical’ in the state domain. KPI values from disparateKPIs can be processed uniformly once they are translated into the commonstate values using the thresholds. For example, “normal 80% of the time”can be applied across various KPIs. To provide meaningful aggregateKPIs, a weighting value can be assigned to each KPI so that itsinfluence on the calculated aggregate KPI value is increased ordecreased relative to the other KPIs.

One service in an IT environment often impacts, or is impacted by,another service. The IT monitoring application can reflect thesedependencies. For example, a dependency relationship between a corporatee-mail service and a centralized authentication service can be reflectedby recording an association between their respective servicedefinitions. The recorded associations establish a service dependencytopology that informs the data or selection options presented in a GUI,for example. (The service dependency topology is like a “map” showinghow services are connected based on their dependencies.) The servicetopology may itself be depicted in a GUI and may be interactive to allownavigation among related services.

Entity definitions in the IT monitoring application can includeinformational fields that can serve as metadata, implied data fields, orattributed data fields for the events identified by other aspects of theentity definition. Entity definitions in the IT monitoring applicationcan also be created and updated by an import of tabular data (asrepresented in a comma separated value (CSV), another delimited file, ora search query result set). The import may be GUI-mediated or processedusing import parameters from a GUI-based import definition process.Entity definitions in the IT monitoring application can also beassociated with a service by means of a service definition rule.Processing the service definition rule results in the matching entitydefinitions being associated with the service definition. The servicedefinition rule can be processed at creation time, and thereafter on ascheduled or on-demand basis. This allows dynamic, rule-based updates tothe service definition.

During operation, the IT monitoring application can recognize notableevents that may indicate a service performance problem or othersituation of interest. These notable events can be recognized by a“correlation search” specifying trigger criteria for a notable event:every time KPI values satisfy the criteria, the application indicates anotable event. A severity level for the notable event may also bespecified. Furthermore, when trigger criteria are satisfied, thecorrelation search may additionally or alternatively cause a serviceticket to be created in an IT service management (ITSM) system, such asa system available from ServiceNow, Inc., of Santa Clara, Calif.

SPLUNK® IT SERVICE INTELLIGENCE™ provides various visualizations builton its service-centric organization of events and the KPI valuesgenerated and collected. Visualizations can be particularly useful formonitoring or investigating service performance. The IT monitoringapplication provides a service monitoring interface suitable as the homepage for ongoing IT service monitoring. The interface is appropriate forsettings such as desktop use or for a wall-mounted display in a networkoperations center (NOC). The interface may prominently display aservices health section with tiles for the aggregate KPIs indicatingoverall health for defined services and a general KPI section with tilesfor KPIs related to individual service aspects. These tiles may displayKPI information in a variety of ways, such as by being colored andordered according to factors like the KPI state value. They also can beinteractive and navigate to visualizations of more detailed KPIinformation.

The IT monitoring application provides a service-monitoring dashboardvisualization based on a user-defined template. The template can includeuser-selectable widgets of varying types and styles to display KPIinformation. The content and the appearance of widgets can responddynamically to changing KPI information. The KPI widgets can appear inconjunction with a background image, user drawing objects, or othervisual elements, that depict the IT operations environment, for example.The KPI widgets or other GUI elements can be interactive so as toprovide navigation to visualizations of more detailed KPI information.

The IT monitoring application provides a visualization showing detailedtime-series information for multiple KPIs in parallel graph lanes. Thelength of each lane can correspond to a uniform time range, while thewidth of each lane may be automatically adjusted to fit the displayedKPI data. Data within each lane may be displayed in a user selectablestyle, such as a line, an area, or a bar chart. During operation a usermay select a position in the time range of the graph lanes to activatelane inspection at that point in time. Lane inspection may display anindicator for the selected time across the graph lanes and display theKPI value associated with that point in time for each of the graphlanes. The visualization may also provide navigation to an interface fordefining a correlation search, using information from the visualizationto pre-populate the definition.

The IT monitoring application provides a visualization for incidentreview showing detailed information for notable events. The incidentreview visualization may also show summary information for the notableevents over a time frame, such as an indication of the number of notableevents at each of a number of severity levels. The severity leveldisplay may be presented as a rainbow chart with the warmest colorassociated with the highest severity classification. The incident reviewvisualization may also show summary information for the notable eventsover a time frame, such as the number of notable events occurring withinsegments of the time frame. The incident review visualization maydisplay a list of notable events within the time frame ordered by anynumber of factors, such as time or severity. The selection of aparticular notable event from the list may display detailed informationabout that notable event, including an identification of the correlationsearch that generated the notable event.

The IT monitoring application provides pre-specified schemas forextracting relevant values from the different types of service-relatedevents. It also enables a user to define such schemas.

3.0 Integration in Computer Analytics System

The data intake and query system 108 described above is configured tointegrate with an application and infrastructure monitoring platform(i.e., “monitoring platform”) (e.g., monitoring platform 1300 in FIGS.13 and 14 ). The following is a description of the monitoring platform1300.

The monitoring platform 1300 provides real time monitoring andobservability for cloud data environments. In one or more embodiments,the monitoring platform 1300 is a complete monitoring platform formonitoring a target system. The target system includes entities beingmanaged. The entities are the individual software applications andindividual parts of the hardware and software infrastructure. Ingeneral, the monitoring platform 1300 monitors how well the targetsystem is executing and ensuring that the target system is complyingwith, for example, throughput and response time requirements, amongother possible requirements.

The monitoring platform 1300 can monitor both the software applicationsand hardware and software infrastructure of the target system. Themonitoring platform 1300 monitors and manages resource usage (e.g.,hardware and software resources) of the target system. For example, themonitoring platform 1300 is configured to monitor the infrastructureincluding which hardware servers are used, what services are used, andhow the hardware and services are executing. The monitoring platform1300 is capable of detecting failures in the hardware and software, andover and underutilization of resources of the target system. Forexample, the monitoring platform 1300 may identify the latency, responsetime, throughput of requests and other metrics of the softwareapplications executing in the target system. Thus, the monitoringplatform 1300 monitors and controls the execution of software on aninfrastructure having virtually any number of computing systems(including storage servers, application servers, etc.).

In one of more embodiments, the monitoring platform 1300 is designed fora target system that is a cloud native environment using DevOps. DevOpsis a set of practices that combines software development (Dev) and IToperations (Ops). DevOps goal is to shorten the system's developmentlife cycle and provide continuous delivery of software with highsoftware quality. In the DevOps environment, the time to commit changesto normal operations is greatly reduced. Cloud native computing is anapproach in software development that utilizes cloud computing to buildand run scalable applications in modern, dynamic environments such aspublic, private, and hybrid clouds. Technologies such as containers,microservices, serverless functions, and immutable infrastructuredeployed via declarative code are common elements of this architecturalstyle. Thus, the Cloud Native DevOps environment may exhibit continuallychanging code and is highly scalable. Software code in the target systemmay have hundreds of loosely coupled services in a variety of programinglanguages. Further, the software and hardware infrastructure may changeon the order of several hundred thousand virtual machines spinning upand down daily. Additionally, hardware resources may also regularlychange based on the changes of the processing utilization changes. Themonitoring platform 1300 is configured to monitor the entire targetsystem in accordance with one or more embodiments and provide metrics,reports, and alerts based on the monitoring. For example, when oneportion of the target system has a fault or failure, the monitoringplatform 1300 may identify other portions of the target system that arerelated (e.g., using traces), and generate an alert for the otherportions of the fault or failure.

The monitoring platform 1300 monitors using at least three types ofinformation, including metrics, traces, and logs. The monitoringplatform 1300 uses metrics to detect faults, failures, and threats inreal time. For example, metrics may be used to determine that theresponse time is too slow. Traces are used to troubleshoot detectedfaults and failures, such as an individual software call that caused alatency problem. Root causes of problems may be determined by themonitoring platform 1300 using logs. The monitoring platform 1300 usesdynamic thresholding, whereby the threshold is set based on historicalinformation, and may provide analysis results within three seconds andoperate at a one second resolution. For tracing, the monitoring platformstores full fidelity information of a target system.

An example of a monitoring platform 1300 is described in United StatesPatent Publication Number 2016/0103665. United States Patent PublicationNumber 2016/0103665 is incorporated herein by reference in its entirety.

The integration of the monitoring platform 1300 with the data intake andquery system 108 provides a way to combine business level insights fromthe data intake and query system 108 with execution level insights ofthe monitoring platform 1300. Whereas the data intake and query system108 analyzes the content of the events to detect threats, anomalies, andgenerate business level results for a target system, the monitoringplatform 1300 obtains information to monitor how well the target systemis executing. Combining the monitoring platform 1300 with the dataintake and query system 108 provides a unified view into a targetsystem. Business level insights can be combined with host levelinformation.

Turning to FIG. 13 , FIG. 13 shows a block diagram of an example dataintake and query system 108 interfacing with the monitoring platform1300, in accordance with example embodiments. As shown in FIG. 13 , themonitoring platform 1300 includes a variety of interfaces to communicatewith the monitoring platform 1300. For example, the monitoring platform1300 includes a Representational State Transfer (REST) applicationprogramming interface (API) 1302, a streaming API 1304, and web UI links1306 in accordance with one or more embodiments.

Individual pieces of related data output by the monitoring platform 1300may be referred to as a data point. A data point includes one or moredata units. A data unit is a portion of the data point. For example, adata point may include data units of one or more metrics, a trace, or anevent in a log. The data points may further include data unitscorresponding to attributes of the one or more metrics, traces, orevents. For example, the attributes may include one or morecorresponding timestamps in which the data is collected or detected, oneor more machine addresses, one or more machine names, other information,or any combination thereof.

The REST API 1302 is a stateless API that serves data on demand. Inother words, the request API 1302 is an API configured to respond onceper request for a set of data having one or more data points. Forexample, using the REST API 1302, the data intake and query system 108may request specific data matching requested parameters and receive asingle response, spanning one or more packets, with the particularresponse data 1308. In one or more embodiments, once the data istransmitted, a new request is performed in order to obtain updated data.

The streaming API 1304 exposes streaming services of the monitoringplatform 1300. Via the streaming API 1304, data stream 1310 matchingparameters are continually transmitted. Specifically, updates aretransmitted in the data stream 1310 as the updates are obtained by themonitoring platform 1300. Through the streaming API 1304, the dataintake and query system 108 may send a single request and receive acontinually updated data stream 1310. Data stream 1310 is a sequence ofdigitally encoded real-time data points that is continuouslytransmitted.

The web UI links 1306 are selectable websites on a webserver exposed bythe monitoring platform 1300. The web UI links 1306 correspond to awebsite to update entities on the monitoring platform 1300.

Although FIG. 13 shows various interfaces, alternative or additionalinterfaces may be provided by the monitoring platform 1300. Each of theinterfaces may be accessible via one or more networks 104. For example,a network (not shown) may exist between the web UI links 1306 and theentity information view (discussed below).

Continuing with FIG. 13 , a search head 210 of the data intake and querysystem 108 is connected via networks 104 to the monitoring platform1300. In one or more embodiments, the search head 210 includesfunctionality to transmit commands for messages to the monitoringplatform 1300 and receive response data 1308 and data stream 1310 fromthe monitoring platform 1300. The processing by the search head 210 isonline and real-time without data storage. In other words, rather thanindexing and storing data in the data stores 208 before analyzing andprocessing the data, the search head 210 analyzes the data and presentsthe UI without storage in the indexers 206. The online analysis includesprocessing each unit of data (e.g., event or record) in the data stream310 once. More specifically, the data is read once by the processors.The processing of data may use a cache, in some embodiments. However, atthe search head 210, query and response of data from any data storage isomitted. Thus, in contrast to static data analysis in which data isstored in a standardized format and then queried from storage to findmatching data items, the online analysis by the search head 210 includesreading, aggregating, and analyzing each unit of data once as the datais received. Any cache may act as a buffer or to transmit a portion ofthe data after analysis to the indexers 206. In order to minimize theamount of data being processed, the search head 210 sends commands withparameters that describes the data to transmit.

Turning to the components of the search head 210, the search head 210includes a content packet interface 1312, a monitoring platforminterface 1332, an object alert detector 1328, an indicator alertimporter 1326, an entity store collection 1336, a summary index 1340,and a UI 1344. The UI 1344 includes a key performance indicator (KPI)and services view 1342 and an entity information view 1338. Each ofthese components is described below.

The monitoring platform interface 1332 is the search head side interfaceto the monitoring platform 1300 that establishes a connection with themonitoring platform 1300, transmits commands, and receives responsemetadata 1308 and time series data 1330. The monitoring platforminterface 1332 includes a monitoring platform (MP) UI 1334 and a backendlayer (not shown). The MP UI 1334 is configured to receive informationdescribing the monitoring platform realm (e.g., an address of themonitoring platform 1300 for connection) and an access token (org token)value that can be used to fetch data. In one or more embodiments, theaccess token allows for fetching data via REST APIs 1302 or StreamingAPIs 1304. Thus, the MP UI 1334 includes functionality to create aconnection with the monitoring platform 1300.

The backend layer is configured to transmit monitoring platform commandsand receive responses from the monitoring platform 1300. Differenttechniques may be used to request the execution of commands and receivethe requested data. For example, the backend layer may query data usingthe streaming API 1304 in a manner that mimics the REST API 1302,whereby data from the streaming API 1304 is pushed and on demand websocket connections are used. Data may be queried using the REST API 1302to pull data from the monitoring platform 1300. As another example, adata stream 1310 may be received via the streaming API 1304 from themonitoring platform 1300. In the example, the monitoring platform 1300may execute a long running job and data may be continually pushed to thesearch head 210 using a long-lived web socket connection. Various othertechniques may be used without departing from the scope of the claims.

The monitoring platform interface 1332 is connected to the contentpacket interface 1312. Content packs are defined for a variety ofdatasets that could be brought in from the monitoring platform 1300. Thegoal of the content pack is to provide a user with a set of searchesthat will allow for entity discovery and service+KPI definitions forsome logical unit of monitoring. For example, this logical unit ofmonitoring could be web services, or it could be granular where the unitcan be all compute services across the clouds, or it could be evenfurther granular where the logical unit could be a particular webservices type. Through the content pack interface 1312, the user mayselect to enable particular content packs, modify queries, or create anew query.

In one or more embodiments, a first portion of the content packetinterface 1322 is for an entity importer 1322 and a second portion isfor a KPI analyzer 1324. The entity importer 1322 is a portion of thecontent packet interface 1312 that tracks the entity membership in thetarget system. A member of the target system is an entity that is a partof the target system. An entity member may have a correspondingoperational state that specifies the level of operation of the entity inthe target system. For example, the operational states may be fullyoperational when the entity is executing and processing requests, astandby state in which the entity is waiting for requests, a fault statein which the fault of the entity is detected. The entity member mayfurther have description information describing the entity. By way of anexample, the description information may include one or more addressesof the corresponding entity, the name of the entity, and the entity typeof the entity (e.g., the function of the entity in the target system(make/model, version information etc.)). The entity importer 1322 is aset of components that is directed to adding or removing of entities inthe target system including capturing operational state of the entityand the entity description.

From the content packet interface 1312, the entity importer 1322includes a pipelined command language query interface 1314 and amonitoring platform command extraction 1316. The pipeline commandlanguage query interface 1314 is an application programming interface orUI for specifying a pipelined command language query in the querylanguage of the data intake and query system 108. Embedded in thepipelined command language query is a monitoring platform command. Themonitoring platform command is a request for data from the monitoringplatform 1300. Thus, a single pipelined command language query mayinclude a command may exist that extracts data from the monitoringplatform 1300 and separately from one or more data stores, as well asspecifies any other commands (e.g., commands described above and withreference to FIG. 11 ) of the data intake and query system 108. Themonitoring platform command in the pipelined command language query maybe demarcated by a symbol, such as a series of one or more alphanumericcharacters denoting the command as a command for the monitoringplatform. For example, the symbol may be “SFX”.

The monitoring platform command extraction 1316 is configured to parsethe pipelined command language query, identify the monitoring platformcommand, and extract the monitoring platform command. The monitoringplatform command extraction 1316 is configured to pass the monitoringplatform command to the monitoring platform interface 1332. Themonitoring platform command may include request parameters, such asrequest parameters that specify entity type, request parametersrequesting only an update since an operational change, or other requestparameters. Results from executing the monitoring platform command arepassed back to the entity importer in the form of metadata 1348. Themetadata 1348 includes data points that has description information andoperational state of entities of the target system matching the request.An entity may be represented in a data point with data unitscorresponding to one or more portions of description information andoperational state.

Entities in the data intake and query system 108 are represented asobjects. For example, each entity in the target system may berepresented by one or more corresponding objects in the data intake andquery system 108. Each object that matches a particular entity includesthe description information and the operational state of thecorresponding entity. Objects may be hierarchically organized based oncontainment between entities. For example, objects for entitiescorresponding to virtual machines are child objects of the objectcorresponding to the physical hardware on which the virtual machinesexecute. The object alert detector 1328 is configured to detect, basedon the metadata 1348, when a change in an object should be performedbased on a change in a metadata 1348. For example, a change inoperational state or description information (e.g., change in name oraddress) of an entity is detected by the object alert detector 1328 andthe detection triggers the update of the corresponding object.Similarly, the addition or removal of an entity from the target systemis detected by the object alert detector 1328 and the detection triggersthe addition or removal of a corresponding object. Thus, the objectalert detector 1328 provides a mechanism for entity discovery by thedata intake and query system 108.

Objects are stored in the entity store collection 1336. The entity storecollection 1336 is a storage structure for storing objects correspondingto entities. The entity store collection 1336 is a local storagestructure for the objects. For example, the entity store collection 1336may be a relational database or other data structure.

Returning to the content packet interface 1312, the KPI analyzer 1324includes functionality to gather KPI information for the target systemfrom the monitoring platform 1300. KPIs for entities include responsetime, throughput, number of faults detected, and other information. KPIsmay include additional information, such as a count of virtual machines,a count of active virtual machines, central processing unit (CPU)utilization, network data received and transmitted in bytes, number ofnetwork packets received and transmitted, compute engine count andactive compute engine count, active instances, and other information.The KPI analyzer 1324 include a KPI query interface 1320, monitoringplatform command extraction 1318, and an indicator alert importer 1326.The KPI query interface 1314 is an application programming interface orUI for specifying a pipelined command language query in the querylanguage of the data intake and query system 108 for requesting KPIinformation. Embedded in the pipelined command language query is amonitoring platform command for the KPI command. The monitoring platformcommand is a request for data from the monitoring platform 1300. Thus, asingle pipelined command language query may include a command thatextracts data from the monitoring platform 1300 and separately from oneor more data stores, as well as specifies any other commands (e.g.,commands described above and with reference to FIG. 11 ) of the dataintake and query system 108. For example, in addition to the monitoringplatform command, the pipelined command language query may also includean aggregation function on the KPI information. The monitoring platformcommand in the pipelined command language query may be demarcated by asymbol, such as a series of one or more alphanumeric characters denotingthe command as a command for the monitoring platform. For example, thesymbol may be “SFX”.

The monitoring platform command extraction 1318 is configured to parsethe pipelined command language query, identify the monitoring platformcommand, and extract the monitoring platform command for the KPI query.Further, the monitoring platform command extraction 1318 is configuredto pass the monitoring platform command to the monitoring platforminterface 1332. The monitoring platform command may include requestparameters, such as request parameters that specify the KPI of interest,entities or types of entities for which the KPI is requested, and otherinformation. Results from executing the monitoring platform command arepassed back to the entity importer in the form of time series data 1330.The time series data 1330 is a series of data points ordered in timeorder. Each data point is for successive points of time indicating whenthe time was KPI is obtained.

The indicator alert importer 1326 is configured to receive and processthe time series data. In one or more embodiments, an online and realtime processing of the time series data 1330 is performed by theindicator alert importer 1326. For example, the indicator alert importer1326 may be configured to generate dynamic thresholds and compare thereceived time series data 1330 to the dynamic thresholds. The indicatoralert importer 1326 is configured to update a summary index 1340. Asummary index 1340 is a storage structure for processed KPI information.For example, the summary index 1340 may include a buffer for populatingdata into a UI 1344, alert information, and aggregated data.

The entity store collection 1336 and the summary index 1340 areconnected to the UI 1344. In one or more embodiments, the UI 1344includes several views, whereby one or more of the views is a dashboard.The dashboards may display one or more charts describing various aspectsof the target system. The UI 1344 includes an entity information view1338 and a KPI and services view 1342. The entity information view 1338is a view of the entities of the target system. Entities discoveredbased on the monitoring platform data may have custom entity types,whereby upon visiting an entity's details view for the custom entitytype, the GUI includes a link 1350 to the monitoring platform 1300.Entity type definitions may be obtained from a content pack.

The KPI and services view 1342 is a view of the KPIs of the targetsystem and the services executing on the target system.

The entity store collection 1336 and the summary index 1340 may beconnected to a data store importer 1346. The data store importer 1346 isconfigured to index and store a selected subset of the metadata 1348 andtimes series data from the monitoring platform 1300. For example, thestored data may include KPI information that exceeds a predefinedthreshold. As another example, the stored data may include datarequested for storage by a user after viewing the UI. Because only aselected subset of already filtered data is stored, the storage costs onthe indexers 206 and the data stores 208 are reduced.

The data store importer 1346 is configured to store a selected subset ofthe KPI and entity information in the data stores 208 of the data intakeand query system 108. For example, through the UI 1344, the user maymark a portion of the data and request that the data is stored in thedata store 208. The selection triggers the data store importer 1346 toimport the selected data. As another example, when the indicator alertimporter 1326 triggers an alert, the data store importer 1346 mayrespond by importing the data related to the alert.

As described above, the integration of the data intake and query system108 with the monitoring platform 1300 may be in the form of long runningjob execution on the monitoring platform 1300 as requested by the dataintake and query system 108. By transmitting long running jobs ratherthan continually transmitting jobs, FIG. 14 is a block diagram of anexample search head 210 of the data intake and query system 108interfacing with a monitoring platform 1300, in accordance with exampleembodiments. In FIG. 14 , the monitoring platform interface 1332 isconfigured to transmit a monitoring platform command in the form of ajob request to the monitoring platform 1300. The job is a request tocontinually provide data matching predefined request parameters, definedin the job (i.e., monitoring platform job), as data stream 1310 to thesearch head 210. For example, the transmission may be performed using anopen web socket connection with the monitoring platform 1300 and searchhead 210. By transmitting a long running job, one or more embodimentsobviate the cost of regular job creation on the monitoring platform1300.

The request parameters of the job are defined in the data filterinterface 1402. The data filter interface 1402 is a GUI or API that isconfigured to receive a new job request for the monitoring platform1300. For example, the data filter interface 1402 may be configured toreceive a configuration file 716 with the job. The configuration file716 may be changed manually by a user or edited in the data filterinterface 1402.

The new job request includes request parameters for filtering the amountof data transmitted and received. In other words, rather than themonitoring platform 1300 forwarding all data, the monitoring platform1300 only transmits the data that satisfies the request parameters. Therequest parameters may include criteria about the entities to providethe data (e.g., an entity address, an entity name, an entity type), themetrics to provide (e.g., throughput, whether a fault is detected, orother metric), resolution of the data (e.g., frequency at which the datais sampled), the frequency in which the data stream 1310 is transmitted,a maximum amount of data to transmit, the period or interval at whichthe job is executed and other request parameters. Based on a tagassociated with the monitoring platform job, the monitoring platform jobis extracted from the job request. The monitoring platform interface1332 transmits the job request to the streaming API 1304. The monitoringplatform interface 1332 transmits the monitoring platform job to theapplication and infrastructure monitoring platform. The streaming API1304 executes the job (i.e., monitoring platform job) and transmits theresults back to the search head 210.

The modular input receiver 1404 is configured to receive and transformthe data stream to create a transformed data stream. The transformationis performed online and in real time. For example, the received datastream 1310 may begin with metadata 1348 and then have key value pairsfor each data item. The transformation takes a raw data stream andtransforms the elements into a table format with terms that the dataintake and query system 108 can process. In the table format, metadata1348 describing each data item and the order of the data items is priorto the data items in the data stream 1310. Data items in the data stream1310 may omit the key name. The transformation converts the monitoringplatform metrics data stream messages, which are in JavaScript ObjectNotation (JSON) format to a data intake and query system query flat JSONformat. The transformation is a non-standard transformation because thetransformation is designed specifically to transform the monitoringplatform data stream messages.

The modular input receiver 1404 is configured to store the transformeddata stream in a metrics index cache 1406. The metrics index cache 1406is a buffer for the analyzer 1408. The metrics interface cache 1406 mayalso store the transformed data stream for a predefined time period(e.g., an hour or a day) until the analyzer 1408 processes the datastream 1310. By storing the data stream 1310 temporarily, if a fault isdetected such that troubleshooting is required, a selective subset ofthe data relative to the fault may be identified and stored in the datastores 208. For example, the selected subset may be stored as describedabove, by the data store importer 1346.

The analyzer 1408 is configured to process the transformed data stream.For example, the analyzer 1408 may correspond to the indicator alertimporter 1326 and the object alert detector 1328 described above. In oneor more embodiments, the analyzer 1408 is configured to determine whenmetrics exceed a threshold, detect anomalies and threats, and update theUI 1344. The analyzer 1408 operates with online data. In other words,rather than successive query and responses, the analyzer 1408 mayoperate by tracking running statistic (e.g., a running total, a runningaverage) of the various raw data value and compare the statistic or theraw data value to a threshold. The threshold may be a dynamic threshold,such as a function of a running average. As described above, the outputof the analyzer 1408 may be used to populate a dashboard that ispresented to a user. For example, the dashboard may present a graph ofthe metrics and be updates as the metrics are received.

Turning now to the flowcharts, while the various steps in the flowchartsare presented and described sequentially, one of ordinary skill willappreciate that at least some of the steps may be executed in differentorders, may be combined or omitted, and at least some of the steps maybe executed in parallel. Furthermore, the steps may be performedactively or passively. For example, some steps may be performed usingpolling or be interrupt driven in accordance with one or moreembodiments.

FIG. 15 depicts a flowchart of command integration 1500 in a computeranalytics system in accordance with one or more embodiments. At Block1502, a pipelined command language query with a monitoring platformcommand is received. The pipelined command language query may bereceived from a user. For example, the user may submit the pipelinedcommand language query using the standard data intake and query systeminterface. Thus, the integrated computer analytics system does notchange how the user submits the query for accessing data from theindexers 206 and data stores 208 or for accessing data from themonitoring platform 1300. Further, by having a single query languagethat handles both pipelined command language commands and monitoringsystem commands, the single query may trigger both systems to operated.Stated another way, the user may use data from one or both of themonitoring platform 1300 and the data intake and query system 108, andapply analysis using pipeline command processors of the data intake andquery system 108. Thus, if a particular aggregator command processor isdefined in the data intake and query system 108, the aggregator commandprocessor may be used with data from the monitoring platform 1300 evenwhen the aggregator command processor is not defined for the monitoringplatform data. As another example, the user may submit the pipelinedcommand language query when defining charts in the view. For example,one or more of the charts may have a corresponding pipelined commandlanguage query that defines the data that is populated in the chart.

In one or more embodiments, some saved searches for entity discovery maybe defined either manually by the user or via content packs. Forexample, saved searches may exist in the data intake and query system108 search definition as predefined for the user. The save searches maybe kept in a disabled state and be capable of being enabled by the user.Thus, rather than the user providing a pipeline command language queryfor entity discovery, the user may simply select to enable a particularsearch.

At Block 1504, the monitoring platform command is extracted whileparsing the pipeline command language search query. The search head 210partitions out the pipeline commands in the query in order of thecommands. Each pipeline command is extracted and transmitted to thecorresponding query phase processor that is programmed to process thecommand. The search head 210 may identify the monitoring platformcommand based on having a symbol corresponding to the monitoringplatform command.

At Block 1506, the monitoring platform command is transmitted via themonitoring platform interface 1322. In particular, the monitoringplatform command is transmitted from the monitoring platform commandextraction 1318 to the monitoring platform interface 1322. If aconnection does not exist with the monitoring platform 1300, then themonitoring platform interface 1322 establishes the connection usingconfiguration information maintained by the interface. In one or moreembodiments, the command is transmitted without being transformed to themonitoring platform 1300.

In response, the monitoring platform 1300 executes the command andtransmits data matching the command to the monitoring platform interface1322. The monitoring platform API may accept start and stop times to runthe computation within this time range. Both are optional. The defaultstart time for the computation is current time and default for stop timeis none which means if no stop time is specified, the computation mayexecute indefinitely. For the jobs used to populate dashboard charts,the indefinite execution is performed so that the computations runcontinuously, and the data is returned.

In one or more embodiments, the saved searches in the data intake andquery system 108 have a start and stop time in the past. For example, asearch for a webservice which executes at time t may have a start timeof t-20 minutes and an end time of t-10 minutes. When there is stop timefor the query, then the monitoring platform interface 1322 closes theconnection once the computation and data retrieval is complete.

Upon submitting a query to the monitoring platform 1300, the monitoringplatform 1300 may respond with different types of messages during thecomputation, such as the following. Control messages provide streaminformation. Information messages include information and warningmessages about the computation. Metadata messages include metadata 1348from the time series generated by the computation. Data messages includethe data points from the computation. Event messages are transmittedwhen a detector at the monitoring platform 1300 detects an anomaly.Error messages indicate that a fatal error stopped the computation.Metadata 1348, data messages, and error messages include the actualdata. Control and information messages may be useful for debugging andinformation purposes. Since the metadata 1348 and data are in separatemessages, the monitoring platform 1300 transforms the data stream 1310by combining the two messages. Further, the data may be transformed to astandardized format online while being received. The standardized formatmay be the event format described above.

The monitoring platform interface 1322 transmits the data to therequester. Data points in the response are analyzed online and in realtime. For example, as data points are being received, the next queryphase processor operates on the received data points. Thus, if the nextquery phase processor is an aggregator, online aggregation may beperformed by tracking running tallies or running averages. Multipleanalysis may be performed on the same data points. For example, a firstanalysis may be to extract metrics and a second analysis may be todetect new entities in the target system. Both analyses are performedwithout data storage, such as in series of each other. The results arepopulated into a UI 1344 and displayed to a user.

FIG. 16 depicts a flowchart of job request execution 1600 in a computeranalytics system in accordance with one or more embodiments. At Block1602, a job request is generated. The job request may be generated inthe same or similar manner as described above with respect to thepipeline command language query. For example, the job request may bedefined automatically or by the user for a particular chart in thedashboard.

At Block 1604, the job request is transmitted to the monitoring platform1300. The monitoring platform interface 1322 may establish a web socketconnection with the monitoring platform 1300 and send the job request tothe streaming API 1304. The streaming API 1304 creates a job accordingto the request parameters in the job request.

At Block 1606, based on job execution at the monitoring platform 1300, adata stream 1310 is received from the monitoring platform 1300. Thestreaming API 1304 transmits the data stream 1310 with data pointsmatching the request parameters to the monitoring platform interface1322. The data stream 1310 is a continual stream of data via the openweb socket connection.

At Block 1608, the data stream 1310 is transformed while the data stream1310 is received to obtain a transformed data stream. Transforming thedata stream may be performed as follows. The message type of themonitoring platform metrics data stream is determined. If the messagetype is MetadataMessage, the metadata message is transformed. A flatJSON for the metadata message is created. The unimportant fields areremoved from the flat j son metadata message. The unimportant fields arethe fields, which are very associated and internal to monitoringplatform. The unimportant fields do not have significance inunderstanding the metrics data. After removing the unimportant fields,the flat JSON for the metadata message is added to the in-memorymetadata dictionary with metadata identifier. Returning to determiningthe message type, if the message type is a data message, the datamessage is transformed. To transform the data message, a flat JSON iscreated for each metric time series in the data message. Further, foreach metric time series, the timestamp is added and any special fieldsused by the data intake and query system. The special fields are fieldshaving high significance in understanding, filtering and querying themetrics data. For example, an organization identifier and namespacefield may be added. The metadata is obtained from metadata dictionaryusing the metadata identifier in the data message. Further, theidentified metadata message is added to each metric time series flatJSON created in the prior operation. Thus, the data stream istransformed to create a transformed data stream.

At Block 1610, the transformed data stream is analyzed to generateanalysis results. Analyzing the data stream 1310 may be performed in asame or similar manner to the analysis described above with respect toBlock 1506. For example, the analysis may be performed through one ormore query phase processors. As another example, a first portion of thetransformed data stream may be used to generate a machine learninganomaly model that is stored. When the data stream 1310 is received,features from the data points in the data stream 1310 are extracted andused as input to the anomaly model, the output of the anomaly model isthe analysis results. For example, the output may be whether an anomalyis detected. The anomaly model may be continually executed withcontinually received portions of the data stream 1310. Periodically, thedata points, predicted output and actual existence of an anomaly or lackthereof may be compared to iteratively adjust the anomaly model.

At Block 1612, the analysis results are presented. For example, the GUImay be updated with the analysis results. Because of the integration oftwo distinct systems, the dashboard may include components of bothsystems. For example, consider the scenario in which the target platformis a collection of servers for an electronic commerce platform. From thedata intake and query system 108, the logged events may be used todetermine shopping habits, how the commerce platform is being used andother metrics. From the monitoring platform 1300, the metrics and tracesmay be used to determine how the various servers and applications arefunctioning. The output of the monitoring platform 1300 may be used todetermine how well the target system is able to handle user requestswhile the data in the data intake and query system 108 may be used todetermine information about the user requests, including whether anysecurity threats exist, or users are using a particular part of thesystem. Thus, the dashboard displays a unified view of the targetsystem.

FIG. 17 illustrates an example of a command change in accordance withone or more embodiments. In the example, the user submits a pipelinedcommand language query having a monitoring platform command 1700 in thequery. The monitoring platform command 1700 is denoted by the symbols“sfx flow query” 1702. Based on the symbols 1702, monitoring platformcommand 1704 is extracted. The monitoring platform command 1704 hasrequest blocks 1706 and 1708. The monitoring platform command 1704 istransmitted to the monitoring platform 1300, which extracts the datablock and responds with data matching the request blocks. The matchingdata is transmitted to the search head 210 that may populate the GUI.

FIGS. 18A-18D show an example of the monitoring platform command,results returned and the transformed data stream in accordance with oneor more embodiments. FIG. 18A illustrates an example of a monitoringplatform command 1800 in accordance with one or more embodiments. Themonitoring platform command 1800 is a command to query the monitoringplatform 1300 to fetch the top 2 EC2 instances for the CPU Utilizationaverage metric. FIG. 18B shows an example of the metadata messages 1802returned by the monitoring platform 1300. FIG. 18C shows an example ofthe data messages 1804 returned by the monitoring platform 1300. FIG.18D illustrates an example of the transformed data stream 1806 in astandard format of the data intake and query system 108. As shown, eventhough the metadata message and the data message are separate anddistinct messages, the metadata and the data is combined into astandardized format based on the tsid value. The output of thetransformed data stream may be used by the next query phase processor.

4.0 Terminology

Computer programs typically comprise one or more instructions set atvarious times in various memory devices of a computing device, which,when read and executed by at least one processor, will cause a computingdevice to execute functions involving the disclosed techniques. In someembodiments, a carrier containing the aforementioned computer programproduct is provided. The carrier is one of an electronic signal, anoptical signal, a radio signal, or a non-transitory computer-readablestorage medium.

Any or all of the features and functions described above can be combinedwith each other, except to the extent it may be otherwise stated aboveor to the extent that any such embodiments may be incompatible by virtueof their function or structure, as will be apparent to persons ofordinary skill in the art. Unless contrary to physical possibility, itis envisioned that (i) the methods/steps described herein may beperformed in any sequence and/or in any combination, and (ii) thecomponents of respective embodiments may be combined in any manner.

Although the subject matter has been described in language specific tostructural features and/or acts, it is to be understood that the subjectmatter defined in the appended claims is not necessarily limited to thespecific features or acts described above. Rather, the specific featuresand acts described above are disclosed as examples of implementing theclaims, and other equivalent features and acts are intended to be withinthe scope of the claims.

Conditional language, such as, among others, “can,” “could,” “might,” or“may,” unless specifically stated otherwise, or otherwise understoodwithin the context as used, is generally intended to convey that certainembodiments include, while other embodiments do not include, certainfeatures, elements and/or steps. Thus, such conditional language is notgenerally intended to imply that features, elements and/or steps are inany way required for one or more embodiments or that one or moreembodiments necessarily include logic for deciding, with or without userinput or prompting, whether these features, elements and/or steps areincluded or are to be performed in any particular embodiment.

Unless the context clearly requires otherwise, throughout thedescription and the claims, the words “comprise,” “comprising,” and thelike are to be construed in an inclusive sense, as opposed to anexclusive or exhaustive sense, e.g., in the sense of “including, but notlimited to.” As used herein, the terms “connected,” “coupled,” or anyvariant thereof means any connection or coupling, either direct orindirect, between two or more elements; the coupling or connectionbetween the elements can be physical, logical, or a combination thereof.Additionally, the words “herein,” “above,” “below,” and words of similarimport, when used in this application, refer to this application as awhole and not to any particular portions of this application. Where thecontext permits, words using the singular or plural number may alsoinclude the plural or singular number respectively. The word “or” inreference to a list of two or more items, covers all of the followinginterpretations of the word: any one of the items in the list, all ofthe items in the list, and any combination of the items in the list.Likewise, the term “and/or” in reference to a list of two or more items,covers all of the following interpretations of the word: any one of theitems in the list, all of the items in the list, and any combination ofthe items in the list.

Conjunctive language such as the phrase “at least one of X, Y and Z,”unless specifically stated otherwise, is otherwise understood with thecontext as used in general to convey that an item, term, etc. may beeither X, Y or Z, or any combination thereof. Thus, such conjunctivelanguage is not generally intended to imply that certain embodimentsrequire at least one of X, at least one of Y and at least one of Z toeach be present. Further, use of the phrase “at least one of X, Y or Z”as used in general is to convey that an item, term, etc. may be eitherX, Y or Z, or any combination thereof.

In some embodiments, certain operations, acts, events, or functions ofany of the algorithms described herein can be performed in a differentsequence, can be added, merged, or left out altogether (e.g., not allare necessary for the practice of the algorithms). In certainembodiments, operations, acts, functions, or events can be performedconcurrently, e.g., through multi-threaded processing, interruptprocessing, or multiple processors or processor cores or on otherparallel architectures, rather than sequentially.

Systems and modules described herein may comprise software, firmware,hardware, or any combination(s) of software, firmware, or hardwaresuitable for the purposes described. Software and other modules mayreside and execute on servers, workstations, personal computers,computerized tablets, PDAs, and other computing devices suitable for thepurposes described herein. Software and other modules may be accessiblevia local computer memory, via a network, via a browser, or via othermeans suitable for the purposes described herein. Data structuresdescribed herein may comprise computer files, variables, programmingarrays, programming structures, or any electronic information storageschemes or methods, or any combinations thereof, suitable for thepurposes described herein. User interface elements described herein maycomprise elements from GUIs, interactive voice response, command lineinterfaces, and other suitable interfaces.

Further, processing of the various components of the illustrated systemscan be distributed across multiple machines, networks, and othercomputing resources. In certain embodiments, one or more of thecomponents of the data intake and query system 108 can be implemented ina remote distributed computing system. In this context, a remotedistributed computing system or cloud-based service can refer to aservice hosted by one or more computing resources that are accessible toend users over a network, for example, by using a web browser or otherapplication on a client device to interface with the remote computingresources. For example, a service provider may provide a data intake andquery system 108 by managing computing resources configured to implementvarious aspects of the system (e.g., search head 210, indexers 206,etc.) and by providing access to the system to end users via a network.

When implemented as a cloud-based service, various components of thedata intake and query system 108 can be implemented usingcontainerization or operating-system-level virtualization, or othervirtualization technique. For example, one or more components of thedata intake and query system 108 (e.g., search head 210, indexers 206,etc.) can be implemented as separate software containers or containerinstances. Each container instance can have certain resources (e.g.,memory, processor, etc.) of the underlying host computing systemassigned to it but may share the same operating system and may use theoperating system's system call interface. Each container may provide anisolated execution environment on the host system, such as by providinga memory space of the host system that is logically isolated from memoryspace of other containers. Further, each container may run the same ordifferent computer applications concurrently or separately and mayinteract with each other. Although reference is made herein tocontainerization and container instances, it will be understood thatother virtualization techniques can be used. For example, the componentscan be implemented using virtual machines using full virtualization orparavirtualization, etc. Thus, where reference is made to“containerized” components, it should be understood that such componentsmay additionally or alternatively be implemented in other isolatedexecution environments, such as a virtual machine environment.

Likewise, the data repositories shown can represent physical and/orlogical data storage, including, e.g., storage area networks or otherdistributed storage systems. Moreover, in some embodiments theconnections between the components shown represent possible paths ofdata flow, rather than actual connections between hardware. While someexamples of possible connections are shown, any of the subset of thecomponents shown can communicate with any other subset of components invarious implementations.

Embodiments are also described above with reference to flow chartillustrations and/or block diagrams of methods, apparatus (systems) andcomputer program products. Each block of the flow chart illustrationsand/or block diagrams, and combinations of blocks in the flow chartillustrations and/or block diagrams, may be implemented by computerprogram instructions. Such instructions may be provided to a processorof a general purpose computer, special purpose computer,specially-equipped computer (e.g., comprising a high-performancedatabase server, a graphics subsystem, etc.) or other programmable dataprocessing apparatus to produce a machine, such that the instructions,which execute via the processor(s) of the computer or other programmabledata processing apparatus, create means for implementing the actsspecified in the flow chart and/or block diagram block or blocks. Thesecomputer program instructions may also be stored in a non-transitorycomputer-readable memory that can direct a computer or otherprogrammable data processing apparatus to operate in a particularmanner, such that the instructions stored in the computer-readablememory produce an article of manufacture including instruction meanswhich implement the acts specified in the flow chart and/or blockdiagram block or blocks. The computer program instructions may also beloaded to a computing device or other programmable data processingapparatus to cause operations to be performed on the computing device orother programmable apparatus to produce a computer implemented processsuch that the instructions which execute on the computing device orother programmable apparatus provide steps for implementing the actsspecified in the flow chart and/or block diagram block or blocks.

Any patents and applications and other references noted above, includingany that may be listed in accompanying filing papers, are incorporatedherein by reference. Aspects of the invention can be modified, ifnecessary, to employ the systems, functions, and concepts of the variousreferences described above to provide yet further implementations of theinvention. These and other changes can be made to the invention in lightof the above Detailed Description. While the above description describescertain examples of the invention, and describes the best modecontemplated, no matter how detailed the above appears in text, theinvention can be practiced in many ways. Details of the system may varyconsiderably in its specific implementation, while still beingencompassed by the invention disclosed herein. As noted above,particular terminology used when describing certain features or aspectsof the invention should not be taken to imply that the terminology isbeing redefined herein to be restricted to any specific characteristics,features, or aspects of the invention with which that terminology isassociated. In general, the terms used in the following claims shouldnot be construed to limit the invention to the specific examplesdisclosed in the specification, unless the above Detailed Descriptionsection explicitly defines such terms. Accordingly, the actual scope ofthe invention encompasses not only the disclosed examples, but also allequivalent ways of practicing or implementing the invention under theclaims.

To reduce the number of claims, certain aspects of the invention arepresented below in certain claim forms, but the applicant contemplatesother aspects of the invention in any number of claim forms. Any claimsintended to be treated under 35 U.S.C. § 112(f) will begin with thewords “means for,” but use of the term “for” in any other context is notintended to invoke treatment under 35 U.S.C. § 112(f). Accordingly, theapplicant reserves the right to pursue additional claims after filingthis application, in either this application or in a continuingapplication.

While the invention has been described with respect to a limited numberof embodiments, those skilled in the art, having benefit of thisdisclosure, will appreciate that other embodiments can be devised whichdo not depart from the scope of the invention as disclosed herein.Accordingly, the scope of the invention should be limited only by theattached claims.

What is claimed is:
 1. A computer implemented method comprising:receiving a job request comprising a monitoring platform job;extracting, based on a tag associated with the monitoring platform job,the monitoring platform job from the job request; transmitting, to anapplication and infrastructure monitoring platform, the monitoringplatform job via a monitoring platform interface on a data intake andquery system; establishing, by the data intake and query system, anetwork connection between the data intake and query system and theapplication and infrastructure monitoring platform; receiving, by thedata intake and query system, a data stream from the application andinfrastructure monitoring platform in response to executing themonitoring platform job on the application and infrastructure monitoringplatform; transforming the data stream while receiving the data streamto obtain a transformed data stream; analyzing the transformed datastream while receiving the data stream to generate analysis results; andoutputting the analysis results.
 2. The computer implemented method ofclaim 1, wherein the job request comprises request parameters definingcriteria for filtering an amount of data received in the data stream. 3.The computer implemented method of claim 1, wherein the job requestcomprises request parameters defining criteria filtering a plurality ofentities that provide data in the data stream.
 4. The computerimplemented method of claim 1, wherein the job request comprises requestparameters defining criteria for a resolution of data in the datastream.
 5. The computer implemented method of claim 1, wherein the jobrequest comprises request parameters defining criteria for a resolutionof transmission of the data stream.
 6. The computer implemented methodof claim 1, further comprising: obtaining, from a data store located inthe data intake and query system, a plurality of events, whereinanalyzing the transformed data stream is further performed using theplurality of events.
 7. The computer implemented method of claim 1,further comprising: obtaining, from a data store located in the dataintake and query system, a plurality of events; generating a dashboardcomprising the analysis results and an output determined from theplurality of events; and presenting the dashboard in a graphical userinterface.
 8. The computer implemented method of claim 1, furthercomprising: receiving a data intake and query system query comprising amonitoring platform command; extracting, based on the tag associatedwith the monitoring platform command, the monitoring platform commandfrom the data intake and query system query; and transmitting, to theapplication and infrastructure monitoring platform, the monitoringplatform command via the monitoring platform interface on the dataintake and query system.
 9. The computer implemented method of claim 1,further comprising: extracting, from a first portion of the data stream,metadata of the first portion of the data stream; populating an initiallocation of the transformed data stream with the metadata; and whilereceiving the data stream, generating event data from each subsequentportion of the data stream.
 10. A computing device, comprising: aprocessor; and a non-transitory computer readable medium having storedthereon instructions that, when executed by the processor, cause theprocessor to perform operations including: receiving a job requestcomprising a monitoring platform job, extracting, based on a tagassociated with the monitoring platform job, the monitoring platform jobfrom the job request, transmitting, to an application and infrastructuremonitoring platform, the monitoring platform job via a monitoringplatform interface on a data intake and query system, establishing, bythe data intake and query system, a network connection between the dataintake and query system and the application and infrastructuremonitoring platform, receiving, by the data intake and query system, adata stream from the application and infrastructure monitoring platformin response to executing the monitoring platform job on the applicationand infrastructure monitoring platform, transforming the data streamwhile receiving the data stream to obtain a transformed data stream,analyzing the transformed data stream while receiving the data stream togenerate analysis results, and outputting the analysis results.
 11. Thecomputing device of claim 10, wherein the job request comprises requestparameters defining criteria for filtering an amount of data received inthe data stream.
 12. The computing device of claim 10, wherein the jobrequest comprises request parameters defining criteria filtering aplurality of entities that provide data in the data stream.
 13. Thecomputing device of claim 10, the operations further comprising:obtaining, from a data store located in the data intake and querysystem, a plurality of events, wherein analyzing the transformed datastream is further performed using the plurality of events.
 14. Thecomputing device of claim 10, the operations further comprising:obtaining, from a data store located in the data intake and querysystem, a plurality of events; generating a dashboard comprising theanalysis results and an output determined from the plurality of events;and presenting the dashboard in a graphical user interface.
 15. Thecomputing device of claim 10, the operations further comprising:receiving a data intake and query system query comprising a monitoringplatform command; extracting, based on the tag associated with themonitoring platform command, the monitoring platform command from thedata intake and query system query; and transmitting, to the applicationand infrastructure monitoring platform, the monitoring platform commandvia the monitoring platform interface on the data intake and querysystem.
 16. The computing device of claim 10, the operations furthercomprising: extracting, from a first portion of the data stream,metadata of the first portion of the data stream; populating an initiallocation of the transformed data stream with the metadata; and whilereceiving the data stream, generating event data from each subsequentportion of the data stream.
 17. A non-transitory computer readablemedium comprising computer readable program code for performingoperations, the operations comprising: receiving a job requestcomprising a monitoring platform job; extracting, based on a tagassociated with the monitoring platform job, the monitoring platform jobfrom the job request; transmitting, to an application and infrastructuremonitoring platform, the monitoring platform job via a monitoringplatform interface on a data intake and query system; establishing, bythe data intake and query system, a network connection between the dataintake and query system and the application and infrastructuremonitoring platform; receiving, by the data intake and query system, adata stream from the application and infrastructure monitoring platformin response to executing the monitoring platform job on the applicationand infrastructure monitoring platform; transforming the data streamwhile receiving the data stream to obtain a transformed data stream;analyzing the transformed data stream while receiving the data stream togenerate analysis results; and outputting the analysis results.
 18. Thenon-transitory computer readable medium of claim 17, the operationsfurther comprising: obtaining, from a data store located in the dataintake and query system, a plurality of events, wherein analyzing thetransformed data stream is further performed using the plurality ofevents.
 19. The non-transitory computer readable medium of claim 17, theoperations further comprising: receiving a data intake and query systemquery comprising a monitoring platform command; extracting, based on thetag associated with the monitoring platform command, the monitoringplatform command from the data intake and query system query; andtransmitting, to the application and infrastructure monitoring platform,the monitoring platform command via the monitoring platform interface onthe data intake and query system.
 20. The non-transitory computerreadable medium of claim 17, the operations further comprising:detecting, based on the analysis results of the transformed data stream,a new network entity connected to the application and infrastructuremonitoring platform; generating an object representing the new networkentity; and storing the object in a data store of the data intake andquery system.